diff options
author | Ivan Vecera <ivecera@redhat.com> | 2017-11-10 07:20:13 +0100 |
---|---|---|
committer | Stephen Hemminger <stephen@networkplumber.org> | 2017-11-12 16:15:23 -0800 |
commit | 6648853975332e5f34d03a1e2a6e09f5e1742099 (patch) | |
tree | 3f43693070513190c7fa1e97604d4989e58ed70c /tc/tc.c | |
parent | 274b63ae21a07497bf12827128fa7594b842cf24 (diff) | |
download | platform_external_iproute2-6648853975332e5f34d03a1e2a6e09f5e1742099.tar.gz platform_external_iproute2-6648853975332e5f34d03a1e2a6e09f5e1742099.tar.bz2 platform_external_iproute2-6648853975332e5f34d03a1e2a6e09f5e1742099.zip |
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>
Diffstat (limited to 'tc/tc.c')
-rw-r--r-- | tc/tc.c | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -39,7 +39,6 @@ int show_graph; int timestamp; int batch_mode; -int resolve_hosts; int use_iec; int force; bool use_names; |