summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2021-01-26 12:50:27 +0100
committerJiri Pirko <jiri@nvidia.com>2021-01-27 09:10:20 +0100
commit778d7b3cb4874e176332c2acdf02c2b172f9fa96 (patch)
treeffbd0d626795c8795b90d6b8ee87715baae6f924
parent13438db7a61f2b9f317deb4be50beaf29274d4e9 (diff)
downloadlibndp-778d7b3cb4874e176332c2acdf02c2b172f9fa96.tar.gz
ndptool: don't use static variable for local context in msgrcv_handler_func()
ndptool is single threaded, so this isn't an actual issue. But it's ugly and unnecessary. Signed-off-by: Thomas Haller <thaller@redhat.com> Signed-off-by: Jiri Pirko <jiri@nvidia.com>
-rw-r--r--utils/ndptool.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/ndptool.c b/utils/ndptool.c
index 3992a1b..d268d99 100644
--- a/utils/ndptool.c
+++ b/utils/ndptool.c
@@ -278,7 +278,7 @@ static int msgrcv_handler_func(struct ndp *ndp, struct ndp_msg *msg, void *priv)
pr_out("\n");
}
ndp_msg_opt_for_each_offset(offset, msg, NDP_MSG_OPT_RDNSS) {
- static struct in6_addr *addr;
+ struct in6_addr *addr;
int addr_index;
pr_out(" Recursive DNS Servers: ");