nfnl: fix compilation warning with gcc-4.7

libnfnetlink.c: In function ‘nfnl_open’:
libnfnetlink.c:177:6: warning: variable ‘err’ set but not used [-Wunused-but-set-variable]

The getsockname value was not checked before. Better to check for errors, but
I prefer not to modify this behaviour. This library will enter EOL once all
netfilter libraries are fully ported to libmnl.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
1 file changed