tools: bpf_dbg: various misc code cleanups
authorDaniel Borkmann <dborkman@redhat.com>
Sat, 22 Feb 2014 17:37:53 +0000 (18:37 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 25 Feb 2014 00:02:10 +0000 (19:02 -0500)
Lets clean up bpf_dbg a bit and improve its code slightly
in various areas: i) Get rid of some macros as there's no
good reason for keeping them, ii) remove one unused variable
and reduce scope of various variables found by cppcheck,
iii) Close non-default file descriptors when exiting the shell.

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/net/bpf_dbg.c

Simple merge