summaryrefslogtreecommitdiff
path: root/sample/http-server.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2010-11-26 13:28:48 -0500
committerNick Mathewson <nickm@torproject.org>2010-11-26 13:28:48 -0500
commit4881778c5c898577bcb756c2b23ed15003c4a0bc (patch)
tree3945ea2f51b8b4faab2db44316ebd5797f794266 /sample/http-server.c
parentd40aa673c23c4120fc1bab7a51d0a23c7fbb9463 (diff)
downloadlibevent-4881778c5c898577bcb756c2b23ed15003c4a0bc.tar.gz
Fix a misplaced ) in http_server.c
Diffstat (limited to 'sample/http-server.c')
-rw-r--r--sample/http-server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sample/http-server.c b/sample/http-server.c
index 80a4ed5b..a5a54b22 100644
--- a/sample/http-server.c
+++ b/sample/http-server.c
@@ -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;
}