summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1997-09-12 03:56:09 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1997-09-12 03:56:09 +0000
commit4e984ea1ea1f7f416aabda773df499637d3b751b (patch)
treec9394ed20e2bee39c5c9e88e570cbbf4f2caf678
parentcdf41a3348f1e334f192e1e39fb8c8ef1eac3a9a (diff)
Add parens to shut up -Wall.
-rw-r--r--sbin/sysctl/sysctl.c6
-rw-r--r--usr.sbin/sysctl/sysctl.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/sbin/sysctl/sysctl.c b/sbin/sysctl/sysctl.c
index 31d20e682b4..b5e359c8a3b 100644
--- a/sbin/sysctl/sysctl.c
+++ b/sbin/sysctl/sysctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sysctl.c,v 1.24 1997/08/29 02:40:40 mickey Exp $ */
+/* $OpenBSD: sysctl.c,v 1.25 1997/09/12 03:56:08 millert Exp $ */
/* $NetBSD: sysctl.c,v 1.9 1995/09/30 07:12:50 thorpej Exp $ */
/*
@@ -44,7 +44,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)sysctl.c 8.1 (Berkeley) 6/6/93";
#else
-static char *rcsid = "$OpenBSD: sysctl.c,v 1.24 1997/08/29 02:40:40 mickey Exp $";
+static char *rcsid = "$OpenBSD: sysctl.c,v 1.25 1997/09/12 03:56:08 millert Exp $";
#endif
#endif /* not lint */
@@ -512,7 +512,7 @@ parse(string, flags)
if (!nflag)
(void)printf("%s = ", string);
if (dev & 0x80)
- dev = 'c' + dev & 0x7f;
+ dev = ('c' + dev) & 0x7f;
else
dev += 'a';
(void) printf("%c:\n", dev);
diff --git a/usr.sbin/sysctl/sysctl.c b/usr.sbin/sysctl/sysctl.c
index 31d20e682b4..b5e359c8a3b 100644
--- a/usr.sbin/sysctl/sysctl.c
+++ b/usr.sbin/sysctl/sysctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sysctl.c,v 1.24 1997/08/29 02:40:40 mickey Exp $ */
+/* $OpenBSD: sysctl.c,v 1.25 1997/09/12 03:56:08 millert Exp $ */
/* $NetBSD: sysctl.c,v 1.9 1995/09/30 07:12:50 thorpej Exp $ */
/*
@@ -44,7 +44,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)sysctl.c 8.1 (Berkeley) 6/6/93";
#else
-static char *rcsid = "$OpenBSD: sysctl.c,v 1.24 1997/08/29 02:40:40 mickey Exp $";
+static char *rcsid = "$OpenBSD: sysctl.c,v 1.25 1997/09/12 03:56:08 millert Exp $";
#endif
#endif /* not lint */
@@ -512,7 +512,7 @@ parse(string, flags)
if (!nflag)
(void)printf("%s = ", string);
if (dev & 0x80)
- dev = 'c' + dev & 0x7f;
+ dev = ('c' + dev) & 0x7f;
else
dev += 'a';
(void) printf("%c:\n", dev);