summaryrefslogtreecommitdiffstats
path: root/sbin/sysctl/sysctl.c
diff options
context:
space:
mode:
authortrasz <trasz@FreeBSD.org>2014-01-02 13:48:54 +0000
committertrasz <trasz@FreeBSD.org>2014-01-02 13:48:54 +0000
commit58ba35d28de5a389bea9be3d21a89154322dac03 (patch)
tree94b78e62391f26e4b65a62f743b4130c576dc308 /sbin/sysctl/sysctl.c
parenta4c13259b5206fcf3dc17123b203dabeb5aa939a (diff)
downloadFreeBSD-src-58ba35d28de5a389bea9be3d21a89154322dac03.zip
FreeBSD-src-58ba35d28de5a389bea9be3d21a89154322dac03.tar.gz
MFC r258659:
Fix warnings to not append "No error: 0". Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'sbin/sysctl/sysctl.c')
-rw-r--r--sbin/sysctl/sysctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/sysctl/sysctl.c b/sbin/sysctl/sysctl.c
index 43592b3..a86d659 100644
--- a/sbin/sysctl/sysctl.c
+++ b/sbin/sysctl/sysctl.c
@@ -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);
}
OpenPOWER on IntegriCloud