summaryrefslogtreecommitdiff
path: root/contrib/bsnmp/snmpd
diff options
context:
space:
mode:
authorEnji Cooper <ngie@FreeBSD.org>2016-05-15 00:10:37 +0000
committerEnji Cooper <ngie@FreeBSD.org>2016-05-15 00:10:37 +0000
commitd208c8fa3fbf9c78c43852f2c50e6e131482b0d0 (patch)
tree6bdd3c78b910201136fa9e720934d280bc786cb5 /contrib/bsnmp/snmpd
parent70e366f272836c8900f2cd8f293e8c3c1f6e2c4c (diff)
downloadsrc-test2-d208c8fa3fbf9c78c43852f2c50e6e131482b0d0.tar.gz
src-test2-d208c8fa3fbf9c78c43852f2c50e6e131482b0d0.zip
Notes
Diffstat (limited to 'contrib/bsnmp/snmpd')
-rw-r--r--contrib/bsnmp/snmpd/config.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/contrib/bsnmp/snmpd/config.c b/contrib/bsnmp/snmpd/config.c
index ff82e82c15fe..23e97bdfa0f8 100644
--- a/contrib/bsnmp/snmpd/config.c
+++ b/contrib/bsnmp/snmpd/config.c
@@ -823,7 +823,8 @@ parse_oid(const char *varname, struct asn_oid *oid)
while (token == '.') {
if (gettoken() == TOK_NUM) {
if (numval > ASN_MAXID)
- report("subid too large %#"QUADXFMT, numval);
+ report("subid too large %#jx",
+ (uintmax_t)numval);
if (oid->len == ASN_MAXOIDLEN)
report("index too long");
if (gettoken() != ':')
@@ -878,7 +879,7 @@ parse_syntax_integer(struct snmp_value *value)
if (token != TOK_NUM)
report("bad INTEGER syntax");
if (numval > 0x7fffffff)
- report("INTEGER too large %"QUADFMT, numval);
+ report("INTEGER too large %ju", (uintmax_t)numval);
value->v.integer = numval;
gettoken();