summaryrefslogtreecommitdiff
path: root/http-internal.h
diff options
context:
space:
mode:
authorGilad Benjamini <gilad@altornetworks.com>2010-08-13 17:08:59 -0400
committerNick Mathewson <nickm@torproject.org>2010-08-13 17:08:59 -0400
commit60433a0a1a4f9efb5c2eb130f0dcd721cab67ec7 (patch)
tree5a9403ebcbeb08b0dbf12633569e3b96cd07c127 /http-internal.h
parenta4af9be10a7b725d77a2ddbfa5d6ef8712521500 (diff)
downloadlibevent-60433a0a1a4f9efb5c2eb130f0dcd721cab67ec7.tar.gz
Clean up syntax on TAILQ_ENTRY() usage
Though the C standards allow it, it's apparently possible to get MSVC upset by saying "struct { int field; } (declarator);" instead of "struct {int field; } declarator;", so let's just not do that. Bugfix for 3044492 (commit msg by nickm)
Diffstat (limited to 'http-internal.h')
-rw-r--r--http-internal.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/http-internal.h b/http-internal.h
index 0380d035..073dd488 100644
--- a/http-internal.h
+++ b/http-internal.h
@@ -58,7 +58,7 @@ struct event_base;
struct evhttp_connection {
/* we use tailq only if they were created for an http server */
- TAILQ_ENTRY(evhttp_connection) (next);
+ TAILQ_ENTRY(evhttp_connection) next;
evutil_socket_t fd;
struct bufferevent *bufev;
@@ -114,7 +114,7 @@ TAILQ_HEAD(evconq, evhttp_connection);
/* each bound socket is stored in one of these */
struct evhttp_bound_socket {
- TAILQ_ENTRY(evhttp_bound_socket) (next);
+ TAILQ_ENTRY(evhttp_bound_socket) next;
struct evconnlistener *listener;
};