svn commit: r350858 - head/sbin/ping6

Alan Somers asomers at FreeBSD.org
Sun Aug 11 15:27:35 UTC 2019


Author: asomers
Date: Sun Aug 11 15:27:34 2019
New Revision: 350858
URL: https://svnweb.freebsd.org/changeset/base/350858

Log:
  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 at gmail.com>
  MFC after:	2 weeks
  Sponsored by:	Google, inc. (Google Summer of Code 2019)
  Differential Revision:	https://reviews.freebsd.org/D21214

Modified:
  head/sbin/ping6/ping6.c

Modified: head/sbin/ping6/ping6.c
==============================================================================
--- head/sbin/ping6/ping6.c	Sun Aug 11 15:22:53 2019	(r350857)
+++ head/sbin/ping6/ping6.c	Sun Aug 11 15:27:34 2019	(r350858)
@@ -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)


More information about the svn-src-head mailing list