diff options
author | Gilad Benjamini <gilad@altornetworks.com> | 2010-08-13 17:08:59 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2010-08-13 17:08:59 -0400 |
commit | 60433a0a1a4f9efb5c2eb130f0dcd721cab67ec7 (patch) | |
tree | 5a9403ebcbeb08b0dbf12633569e3b96cd07c127 /defer-internal.h | |
parent | a4af9be10a7b725d77a2ddbfa5d6ef8712521500 (diff) | |
download | libevent-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 'defer-internal.h')
-rw-r--r-- | defer-internal.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/defer-internal.h b/defer-internal.h index 6d21913c..67e4d2ac 100644 --- a/defer-internal.h +++ b/defer-internal.h @@ -41,7 +41,7 @@ typedef void (*deferred_cb_fn)(struct deferred_cb *, void *); * an event_base's event_loop, rather than running immediately. */ struct deferred_cb { /** Links to the adjacent active (pending) deferred_cb objects. */ - TAILQ_ENTRY (deferred_cb) (cb_next); + TAILQ_ENTRY (deferred_cb) cb_next; /** True iff this deferred_cb is pending in an event_base. */ unsigned queued : 1; /** The function to execute when the callback runs. */ |