kernel/pf: Fix a bunch of gcc47 -Waddress warnings.
authorSascha Wildner <saw@online.de>
Tue, 5 Mar 2013 17:50:53 +0000 (18:50 +0100)
committerSascha Wildner <saw@online.de>
Tue, 5 Mar 2013 17:52:02 +0000 (18:52 +0100)
commitc7292832c33cc1840e70a1385e17aa1edeedadc1
tree9f7b80a2e7e3db4a1b63c25080e49078149bea19
parent126b964549e56fae007205eb927bb747a8444998
kernel/pf: Fix a bunch of gcc47 -Waddress warnings.

The REASON_SET() macro is sometimes called with the address of a local
u_short instead of a pointer passed to the macro's caller. In its NULL
check, gcc47 detects that the address can never be NULL and issues a
-Waddress warning which part of -Wall.

To silence it, go via a u_short pointer in the macro. This fix is about
as harmless as the "issue" gcc47 was warning about.

While here, put two "x" parameters in parentheses.
sys/net/pf/pfvar.h