Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Jun 2016 17:35:59 +0000 (UTC)
From:      Garrett Cooper <ngie@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r301659 - stable/9/usr.sbin/bsnmpd/tools/libbsnmptools
Message-ID:  <201606081735.u58HZxN8033192@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ngie
Date: Wed Jun  8 17:35:59 2016
New Revision: 301659
URL: https://svnweb.freebsd.org/changeset/base/301659

Log:
  MFstable/10 r301657:
  
  MFC r299701:
  
  Move _bsnmptools_debug extern from bsnmpmap.c to bsnmptools.h
  
  It was used in bsnmpmap.c but was stored in bsnmptools.c; moving the extern
  to the header allows us to cover all of our bases for the variable, and allows
  _bsnmptools_debug to be used in the future elsewhere -- not just bsnmpmap.c.

Modified:
  stable/9/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpmap.c
  stable/9/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.h
Directory Properties:
  stable/9/   (props changed)
  stable/9/usr.sbin/   (props changed)
  stable/9/usr.sbin/bsnmpd/   (props changed)

Modified: stable/9/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpmap.c
==============================================================================
--- stable/9/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpmap.c	Wed Jun  8 17:35:13 2016	(r301658)
+++ stable/9/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpmap.c	Wed Jun  8 17:35:59 2016	(r301659)
@@ -47,7 +47,6 @@
 #include "bsnmptc.h"
 #include "bsnmptools.h"
 
-extern int _bsnmptools_debug;
 #define	DEBUG	if (_bsnmptools_debug) fprintf
 
 /* Allocate memory and initialize list. */

Modified: stable/9/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.h
==============================================================================
--- stable/9/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.h	Wed Jun  8 17:35:13 2016	(r301658)
+++ stable/9/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.h	Wed Jun  8 17:35:59 2016	(r301659)
@@ -229,7 +229,7 @@ extern struct snmp_toolinfo snmptool;
 #define	SET_NONREP(ctx, i)	(((ctx)->flags |= (((i) & 0xff) << 24)))
 #define	GET_NONREP(ctx)		(((ctx)->flags & NONREP_BITS) >> 24)
 
-
+extern int _bsnmptools_debug;
 extern const struct asn_oid IsoOrgDod_OID;
 
 int snmptool_init(struct snmp_toolinfo *);



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