diff options
author | 2018-03-06 20:56:36 +0000 | |
---|---|---|
committer | 2018-03-06 20:56:36 +0000 | |
commit | eb7ca7187d1a810aaf61471222ca0020b024589d (patch) | |
tree | 6d6bebba59cb6f3af15dafa7ed7ecdf95bbed28f | |
parent | If source and destination addresses are equal, the incoming and (diff) | |
download | wireguard-openbsd-eb7ca7187d1a810aaf61471222ca0020b024589d.tar.xz wireguard-openbsd-eb7ca7187d1a810aaf61471222ca0020b024589d.zip |
Fix a small mistake from r1.229 causing sysctl(8) to print "newval -> newval"
instead of "oldval -> newval" when changing a string variable.
OK florian@
-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 47f863962df..c27c1ae22a7 100644 --- a/sbin/sysctl/sysctl.c +++ b/sbin/sysctl/sysctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sysctl.c,v 1.230 2018/02/16 07:27:07 jmc Exp $ */ +/* $OpenBSD: sysctl.c,v 1.231 2018/03/06 20:56:36 tim Exp $ */ /* $NetBSD: sysctl.c,v 1.9 1995/09/30 07:12:50 thorpej Exp $ */ /* @@ -1030,7 +1030,7 @@ parse(char *string, int flags) (unsigned char)buf[i]); } } else - (void)printf("%s", cp); + (void)printf("%s", buf); (void)printf(" -> "); } |