]> git.ipfire.org Git - thirdparty/iproute2.git/commit
lib: make resolve_hosts variable common
authorIvan Vecera <ivecera@redhat.com>
Fri, 10 Nov 2017 06:20:13 +0000 (07:20 +0100)
committerStephen Hemminger <stephen@networkplumber.org>
Mon, 13 Nov 2017 00:15:23 +0000 (16:15 -0800)
commit6648853975332e5f34d03a1e2a6e09f5e1742099
tree3f43693070513190c7fa1e97604d4989e58ed70c
parent274b63ae21a07497bf12827128fa7594b842cf24
lib: make resolve_hosts variable common

Any iproute utility that uses any function from lib/utils.c needs
to declare its own resolve_hosts variable instance although it does
not need/use hostname resolving functionality (currently only 'ip'
and 'ss' commands uses this).
The patch declares single common instance of resolve_hosts directly
in utils.c so the existing ones can be removed (the same approach
that is used for timestamp_short).

Cc: Jiri Pirko <jiri@mellanox.com>
Cc: Arkadi Sharshevsky <arkadis@mellanox.com>
Signed-off-by: Ivan Vecera <ivecera@redhat.com>
bridge/bridge.c
genl/genl.c
ip/ip.c
ip/rtmon.c
lib/utils.c
misc/arpd.c
misc/ss.c
tc/tc.c