]> granicus.if.org Git - libevent/commitdiff
Fix a misplaced ) in http_server.c
authorNick Mathewson <nickm@torproject.org>
Fri, 26 Nov 2010 18:28:48 +0000 (13:28 -0500)
committerNick Mathewson <nickm@torproject.org>
Fri, 26 Nov 2010 18:28:48 +0000 (13:28 -0500)
sample/http-server.c

index 80a4ed5b9cb82c44eeff4f7b4a868e7b8c755043..a5a54b226e993d93d542b7bdbac000f70e370dca 100644 (file)
@@ -213,7 +213,7 @@ send_document_cb(struct evhttp_request *req, void *arg)
                /* Otherwise it's a file; add it to the buffer to get
                 * sent via sendfile */
                const char *type = guess_content_type(decoded_path);
-               if ((fd = open(whole_path, O_RDONLY) < 0)) {
+               if ((fd = open(whole_path, O_RDONLY)) < 0) {
                        perror("open");
                        goto err;
                }