diff options
author | ngie <ngie@FreeBSD.org> | 2016-06-08 17:34:37 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2016-06-08 17:34:37 +0000 |
commit | 3e6a3544bf95e8596d969f6ac105b7ec63239d26 (patch) | |
tree | 8fa5725a4265a10c7221b8864b16fb3dfcaa03bc | |
parent | f3d2358a821eb701f0b18e11bb617d495950dc3b (diff) | |
download | FreeBSD-src-3e6a3544bf95e8596d969f6ac105b7ec63239d26.zip FreeBSD-src-3e6a3544bf95e8596d969f6ac105b7ec63239d26.tar.gz |
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.
-rw-r--r-- | usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpmap.c | 1 | ||||
-rw-r--r-- | usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.h | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpmap.c b/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpmap.c index add712d..7e2b721 100644 --- a/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpmap.c +++ b/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpmap.c @@ -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. */ diff --git a/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.h b/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.h index c14fe52..9c0e3d0 100644 --- a/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.h +++ b/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.h @@ -231,7 +231,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 *); |