ports/security/fragroute/files/patch-mod.c
Tobias Kortkamp 948b7d0f40 net/fragroute: Unbreak on CURRENT
fragtest.c:102:39: warning: implicit declaration of function 'TAILQ_END' is invalid in C99 [-Wimplicit-function-declaration]
        for (pkt = TAILQ_FIRST(pktq); pkt != TAILQ_END(pktq); pkt = next) {
                                             ^

It was accidentally using sys/queue.h (which no longer has TAILQ_END)
instead of the bundled version.  Make this explicit and add a
definition for TAILQ_END to avoid adding more patches.
2020-03-30 08:35:23 +00:00

11 lines
333 B
C

--- mod.c.orig 2020-03-22 06:34:47 UTC
+++ mod.c
@@ -151,7 +151,7 @@ mod_close(void)
{
struct rule *rule;
- TAILQ_FOREACH_REVERSE(rule, &rules, next, head) {
+ TAILQ_FOREACH_REVERSE(rule, &rules, head, next) {
if (rule->mod->close != NULL)
rule->data = rule->mod->close(rule->data);
TAILQ_REMOVE(&rules, rule, next);