Do not do an assignment in a truth test (previous commit) or gcc gives a
warning which breaks builds. cc1: warnings being treated as errors src/sys/net/bridge.c: In function `bdg_forward': sys/net/bridge.c:931: warning: suggest parentheses around assignment used as truth value *** Error code 1
This commit is contained in:
parent
7df8d20337
commit
a6f0140de9
@ -928,7 +928,7 @@ bdg_forward(struct mbuf *m0, struct ifnet *dst)
|
||||
}
|
||||
ip = mtod(m0, struct ip *);
|
||||
}
|
||||
} while (pfh = TAILQ_NEXT(pfh, pfil_link));
|
||||
} while ((pfh = TAILQ_NEXT(pfh, pfil_link)) != NULL);
|
||||
/*
|
||||
* If we get here, the firewall has passed the pkt, but the mbuf
|
||||
* pointer might have changed. Restore ip and the fields ntohs()'d.
|
||||
|
Loading…
Reference in New Issue
Block a user