Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 11 Aug 2019 15:27:34 +0000 (UTC)
From:      Alan Somers <asomers@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r350858 - head/sbin/ping6
Message-ID:  <201908111527.x7BFRYic073327@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201908111527.x7BFRYic073327>