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)
commit7debf7806e0e984ea7e43cc271dc9400b0dffc14
tree28db6f2edc89f3fc8fa134a38c0a3e1187b5624d
parentb17c706987fa6f28bdc1771c8266e7a69e22adcb
tools: bpf_dbg: various misc code cleanups

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