aboutsummaryrefslogtreecommitdiff
path: root/sbin/sysctl
diff options
context:
space:
mode:
authorSimon J. Gerraty <sjg@FreeBSD.org>2014-04-28 07:50:45 +0000
committerSimon J. Gerraty <sjg@FreeBSD.org>2014-04-28 07:50:45 +0000
commit3b8f08459569bf0faa21473e5cec2491e95c9349 (patch)
tree80f45dd81ca716bcd7ca9674581e1fc40b93cd34 /sbin/sysctl
parent9d2ab4a62d6733c45958627ac113bdbd818d1e2a (diff)
parentb2ba55951383498f252746f618d513139da06e8e (diff)
Notes
Diffstat (limited to 'sbin/sysctl')
-rw-r--r--sbin/sysctl/sysctl.82
-rw-r--r--sbin/sysctl/sysctl.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/sbin/sysctl/sysctl.8 b/sbin/sysctl/sysctl.8
index fe0a75a971c8b..b81de6e8a3120 100644
--- a/sbin/sysctl/sysctl.8
+++ b/sbin/sysctl/sysctl.8
@@ -130,7 +130,7 @@ to standard error.
.It Fl T
Display only variables that are setable via loader (CTLFLAG_TUN).
.It Fl W
-Display only wriable variables that are not statistical.
+Display only writable variables that are not statistical.
Useful for determining the set of runtime tunable sysctls.
.It Fl X
Equivalent to
diff --git a/sbin/sysctl/sysctl.c b/sbin/sysctl/sysctl.c
index 43592b3081c94..a86d659cb040e 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);
}