diff options
author | ngie <ngie@FreeBSD.org> | 2016-05-15 00:10:37 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2016-05-15 00:10:37 +0000 |
commit | f8efc8ecc67c684d2e7e6336e35d06f6650ddced (patch) | |
tree | 6bdd3c78b910201136fa9e720934d280bc786cb5 /contrib/bsnmp | |
parent | 857a2570c39cb6acfcc083e1671722a547e47956 (diff) | |
download | FreeBSD-src-f8efc8ecc67c684d2e7e6336e35d06f6650ddced.zip FreeBSD-src-f8efc8ecc67c684d2e7e6336e35d06f6650ddced.tar.gz |
Replace QUADFMT with %ju and QUADXFMT with %jx and cast values with uintmax_t
This will cure some -Wformat warnings
MFC after: 1 week
Reported by: clang, gcc
Sponsored by: EMC / Isilon Storage Division
Diffstat (limited to 'contrib/bsnmp')
-rw-r--r-- | contrib/bsnmp/snmpd/config.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/contrib/bsnmp/snmpd/config.c b/contrib/bsnmp/snmpd/config.c index ff82e82..23e97bd 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(); |