mirror of
https://git.freebsd.org/ports.git
synced 2025-05-25 15:36:35 -04:00
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.
11 lines
333 B
C
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);
|