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 /misc | |
parent | 274b63ae21a07497bf12827128fa7594b842cf24 (diff) | |
download | iproute2-6648853975332e5f34d03a1e2a6e09f5e1742099.tar.gz |
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 'misc')
-rw-r--r-- | misc/arpd.c | 2 | ||||
-rw-r--r-- | misc/ss.c | 1 |
2 files changed, 0 insertions, 3 deletions
diff --git a/misc/arpd.c b/misc/arpd.c index c2666f76..67d86b67 100644 --- a/misc/arpd.c +++ b/misc/arpd.c @@ -38,8 +38,6 @@ #include "utils.h" #include "rt_names.h" -int resolve_hosts; - DB *dbase; char *dbname = "/var/lib/arpd/arpd.db"; @@ -88,7 +88,6 @@ static int security_get_initial_context(char *name, char **context) } #endif -int resolve_hosts; int resolve_services = 1; int preferred_family = AF_UNSPEC; int show_options; |