aboutsummaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorIvan Vecera <ivecera@redhat.com>2017-11-10 07:20:13 +0100
committerStephen Hemminger <stephen@networkplumber.org>2017-11-12 16:15:23 -0800
commit6648853975332e5f34d03a1e2a6e09f5e1742099 (patch)
tree3f43693070513190c7fa1e97604d4989e58ed70c /misc
parent274b63ae21a07497bf12827128fa7594b842cf24 (diff)
downloadiproute2-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.c2
-rw-r--r--misc/ss.c1
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";
diff --git a/misc/ss.c b/misc/ss.c
index 56a9ad41..45a0c330 100644
--- a/misc/ss.c
+++ b/misc/ss.c
@@ -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;