svn commit: r260193 - stable/10/sbin/sysctl
Edward Tomasz Napierala
trasz at FreeBSD.org
Thu Jan 2 13:48:54 UTC 2014
Author: trasz
Date: Thu Jan 2 13:48:54 2014
New Revision: 260193
URL: http://svnweb.freebsd.org/changeset/base/260193
Log:
MFC r258659:
Fix warnings to not append "No error: 0".
Sponsored by: The FreeBSD Foundation
Modified:
stable/10/sbin/sysctl/sysctl.c
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/sbin/sysctl/sysctl.c
==============================================================================
--- stable/10/sbin/sysctl/sysctl.c Thu Jan 2 13:46:33 2014 (r260192)
+++ stable/10/sbin/sysctl/sysctl.c Thu Jan 2 13:48:54 2014 (r260193)
@@ -201,7 +201,7 @@ parse(const char *string, int lineno)
cp = buf;
if (snprintf(buf, BUFSIZ, "%s", string) >= BUFSIZ) {
- warn("oid too long: '%s'%s", string, line);
+ warnx("oid too long: '%s'%s", string, line);
return (1);
}
bufp = strsep(&cp, "=:");
@@ -260,7 +260,7 @@ parse(const char *string, int lineno)
}
} else {
if ((kind & CTLTYPE) == CTLTYPE_NODE) {
- warn("oid '%s' isn't a leaf node%s", bufp, line);
+ warnx("oid '%s' isn't a leaf node%s", bufp, line);
return (1);
}
More information about the svn-src-all
mailing list