diff options
author | trasz <trasz@FreeBSD.org> | 2013-11-26 19:14:18 +0000 |
---|---|---|
committer | trasz <trasz@FreeBSD.org> | 2013-11-26 19:14:18 +0000 |
commit | 3cb5cc327b6f0f4e89605003b74a7e1b0c2b4585 (patch) | |
tree | 4148c68b3e6ee0e85ce299093d7f8fc54026372d /sbin/sysctl | |
parent | 92e719523bed5744892506827837280aae723e8b (diff) | |
download | FreeBSD-src-3cb5cc327b6f0f4e89605003b74a7e1b0c2b4585.zip FreeBSD-src-3cb5cc327b6f0f4e89605003b74a7e1b0c2b4585.tar.gz |
Fix warnings to not append "No error: 0".
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'sbin/sysctl')
-rw-r--r-- | sbin/sysctl/sysctl.c | 4 |
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); } |