]> granicus.if.org Git - libevent/commit
Fix nonstandard TAILQ_FOREACH_REVERSE() definition
authorFrank Denis <chrysalis@users.sourceforge.net>
Mon, 3 May 2010 15:37:16 +0000 (11:37 -0400)
committerNick Mathewson <nickm@torproject.org>
Mon, 3 May 2010 15:40:09 +0000 (11:40 -0400)
commit71afc525804f416cfaabf4ec253f725fe3ec6822
treea4b9df50ebbb71a64dfd186425cfc07f63ed3f38
parent953e2290fc9a649c465d5bcc7b26bdb0d5693c3b
Fix nonstandard TAILQ_FOREACH_REVERSE() definition

Every current BSD system providing TAILQ_* macros define
TAILQ_FOREACH_REVERSE in this order:

TAILQ_FOREACH_REVERSE(var, head, field, headname)

However, libevent defines it in another order:

TAILQ_FOREACH_REVERSE(var, head, headname, field)

Here's a trivial patch to have libevent compatible with stock queue.h headers.

-Frank.

[From sourceforge patch 2995179. codesearch.google.com confirms that
the only people defining TAILQ_FOREACH_REVERSE our way are people
using it in a compatibility header like us.  Did we copy this from
OpenSSH or something?]

-Nick
compat/sys/queue.h
event.c