diff options
author | Enji Cooper <ngie@FreeBSD.org> | 2016-05-14 03:57:18 +0000 |
---|---|---|
committer | Enji Cooper <ngie@FreeBSD.org> | 2016-05-14 03:57:18 +0000 |
commit | 29517fca53014e6dd9d73d15a539bb8752ef04a9 (patch) | |
tree | 0c6df32b359967bf28711f5929ed7aeef5e734f3 /usr.sbin/bsnmpd/tools | |
parent | cbc796fb90f78d274a8ce5ccb442de735bdaa751 (diff) | |
download | src-test2-29517fca53014e6dd9d73d15a539bb8752ef04a9.tar.gz src-test2-29517fca53014e6dd9d73d15a539bb8752ef04a9.zip |
Notes
Diffstat (limited to 'usr.sbin/bsnmpd/tools')
-rw-r--r-- | usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpimport.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpimport.c b/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpimport.c index 67a44d9055ff..4ced51eb9655 100644 --- a/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpimport.c +++ b/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpimport.c @@ -140,9 +140,9 @@ struct input { LIST_ENTRY(input) link; }; -LIST_HEAD(, input) inputs = LIST_HEAD_INITIALIZER(inputs); -struct input *input = NULL; -int32_t pbchar = -1; +static LIST_HEAD(, input) inputs = LIST_HEAD_INITIALIZER(inputs); +static struct input *input = NULL; +static int32_t pbchar = -1; #define MAX_PATHS 100 @@ -301,18 +301,18 @@ static const struct { { NULL, 0, 0 } }; -struct { +static struct { /* Current OID type, regarding table membership. */ enum snmp_tbl_entry tbl_type; /* A pointer to a structure in table list to add to its members. */ struct snmp_index_entry *table_idx; } table_data; -struct asn_oid current_oid; -char nexttok[MAXSTR]; -u_long val; /* integer values */ -int32_t all_cond; /* all conditions are true */ -int32_t saved_token = -1; +static struct asn_oid current_oid; +static char nexttok[MAXSTR]; +static u_long val; /* integer values */ +static int32_t all_cond; /* all conditions are true */ +static int32_t saved_token = -1; /* Prepare the global data before parsing a new file. */ static void |