svn commit: r295245 - user/ngie/bsnmp_cleanup/contrib/bsnmp/snmpd
Garrett Cooper
ngie at FreeBSD.org
Thu Feb 4 09:00:02 UTC 2016
Author: ngie
Date: Thu Feb 4 09:00:00 2016
New Revision: 295245
URL: https://svnweb.freebsd.org/changeset/base/295245
Log:
Explicitly use %jx and %ju instead of QUADXFMT and QUADFMT obfuscation
This mutes a -Wformat error about using the wrong format qualifier
Modified:
user/ngie/bsnmp_cleanup/contrib/bsnmp/snmpd/config.c
Modified: user/ngie/bsnmp_cleanup/contrib/bsnmp/snmpd/config.c
==============================================================================
--- user/ngie/bsnmp_cleanup/contrib/bsnmp/snmpd/config.c Thu Feb 4 08:54:59 2016 (r295244)
+++ user/ngie/bsnmp_cleanup/contrib/bsnmp/snmpd/config.c Thu Feb 4 09:00:00 2016 (r295245)
@@ -823,7 +823,8 @@ parse_oid(const char *varname, struct as
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 *
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();
More information about the svn-src-user
mailing list