summaryrefslogtreecommitdiff
path: root/evrpc-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 /evrpc-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 'evrpc-internal.h')
-rw-r--r--evrpc-internal.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/evrpc-internal.h b/evrpc-internal.h
index c4f7209e..8497d298 100644
--- a/evrpc-internal.h
+++ b/evrpc-internal.h
@@ -35,7 +35,7 @@ struct evrpc_request_wrapper;
#define EVRPC_URI_PREFIX "/.rpc."
struct evrpc_hook {
- TAILQ_ENTRY(evrpc_hook) (next);
+ TAILQ_ENTRY(evrpc_hook) next;
/* returns EVRPC_TERMINATE; if the rpc should be aborted.
* a hook is is allowed to rewrite the evbuffer
@@ -95,14 +95,14 @@ struct evrpc_pool {
};
struct evrpc_hook_ctx {
- TAILQ_ENTRY(evrpc_hook_ctx) (next);
+ TAILQ_ENTRY(evrpc_hook_ctx) next;
void *ctx;
void (*cb)(void *, enum EVRPC_HOOK_RESULT);
};
struct evrpc_meta {
- TAILQ_ENTRY(evrpc_meta) (next);
+ TAILQ_ENTRY(evrpc_meta) next;
char *key;
void *data;