aboutsummaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorAlan Somers <asomers@FreeBSD.org>2019-08-11 15:27:34 +0000
committerAlan Somers <asomers@FreeBSD.org>2019-08-11 15:27:34 +0000
commit5e35df9474c5164304e3ccd6cea850e824c64071 (patch)
treeb549448acb056d4dcc52b81e862cd454d49dcc23 /sbin
parent0ef7ac044a88525aac247ae199862966a5953d27 (diff)
downloadsrc-5e35df9474c5164304e3ccd6cea850e824c64071.tar.gz
src-5e35df9474c5164304e3ccd6cea850e824c64071.zip
ping6: Add missing static keyword for a global variable
This fixes -Wmissing-variable-declarations error when compiled with WARNS=6. Submitted by: Ján Sučan <sucanjan@gmail.com> MFC after: 2 weeks Sponsored by: Google, inc. (Google Summer of Code 2019) Differential Revision: https://reviews.freebsd.org/D21214
Notes
Notes: svn path=/head/; revision=350858
Diffstat (limited to 'sbin')
-rw-r--r--sbin/ping6/ping6.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/ping6/ping6.c b/sbin/ping6/ping6.c
index aa81701c9bc2..766d3dcb3322 100644
--- a/sbin/ping6/ping6.c
+++ b/sbin/ping6/ping6.c
@@ -198,7 +198,7 @@ struct tv32 {
#define F_DONTFRAG 0x1000000
#define F_NOUSERDATA (F_NODEADDR | F_FQDN | F_FQDNOLD | F_SUPTYPES)
#define F_WAITTIME 0x2000000
-u_int options;
+static u_int options;
#define IN6LEN sizeof(struct in6_addr)
#define SA6LEN sizeof(struct sockaddr_in6)