summaryrefslogtreecommitdiff
path: root/http-internal.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2009-04-23 05:40:06 +0000
committerNick Mathewson <nickm@torproject.org>2009-04-23 05:40:06 +0000
commit9516df0e2eeb28234f679a65062631d409781346 (patch)
tree3b5da0da874ec669e593606283c474848a68c811 /http-internal.h
parent8ba25b9ec7b66facafdd2c59bf55aefaeeab9042 (diff)
downloadlibevent-9516df0e2eeb28234f679a65062631d409781346.tar.gz
Fix c89 bugs reported by Cory Stup.
Others may remain. I wasn't able to get gcc --std=c89 to build libevent at all, so I don't know what compiler the original reporter is using here. Note that this change requires us to disable the part of our rpc code that uses variadic macros when using a non-gcc compiler. This is a problem if we want our rpc api to be portable. svn:r1231
Diffstat (limited to 'http-internal.h')
-rw-r--r--http-internal.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/http-internal.h b/http-internal.h
index 194980a0..ab3d8039 100644
--- a/http-internal.h
+++ b/http-internal.h
@@ -147,8 +147,10 @@ void evhttp_connection_fail(struct evhttp_connection *,
void evhttp_get_request(struct evhttp *, evutil_socket_t, struct sockaddr *, socklen_t);
-int evhttp_parse_firstline(struct evhttp_request *, struct evbuffer*);
-int evhttp_parse_headers(struct evhttp_request *, struct evbuffer*);
+enum message_read_status;
+
+enum message_read_status evhttp_parse_firstline(struct evhttp_request *, struct evbuffer*);
+enum message_read_status evhttp_parse_headers(struct evhttp_request *, struct evbuffer*);
void evhttp_start_read(struct evhttp_connection *);
void evhttp_make_header(struct evhttp_connection *, struct evhttp_request *);