summaryrefslogtreecommitdiff
path: root/sys/compat/linux/linux_misc.c
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1998-02-23 08:57:55 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1998-02-23 08:57:55 +0000
commit54a72b80730eb22de02560be66cf491cc4c64c4e (patch)
treea695447f65cc024838a81fd2f489dbfd4f2c3475 /sys/compat/linux/linux_misc.c
parentb9cc6008175c9ffdcc81f970de76822a4af56cf9 (diff)
GCC 2.8 -Wall
Diffstat (limited to 'sys/compat/linux/linux_misc.c')
-rw-r--r--sys/compat/linux/linux_misc.c17
1 files changed, 4 insertions, 13 deletions
diff --git a/sys/compat/linux/linux_misc.c b/sys/compat/linux/linux_misc.c
index 92754f2e790..7dff8792d2b 100644
--- a/sys/compat/linux/linux_misc.c
+++ b/sys/compat/linux/linux_misc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: linux_misc.c,v 1.13 1997/11/26 09:18:12 deraadt Exp $ */
+/* $OpenBSD: linux_misc.c,v 1.14 1998/02/23 08:57:54 niklas Exp $ */
/* $NetBSD: linux_misc.c,v 1.27 1996/05/20 01:59:21 fvdl Exp $ */
/*
@@ -402,10 +402,7 @@ linux_sys_uname(p, v, retval)
len = sizeof(luts.l_version);
for (cp = luts.l_version; len--; ++cp)
if (*cp == '\n' || *cp == '\t')
- if (len > 1)
- *cp = ' ';
- else
- *cp = '\0';
+ *cp = (len > 1) ? ' ' : '\0';
return copyout(&luts, SCARG(uap, up), sizeof(luts));
}
@@ -434,10 +431,7 @@ linux_sys_olduname(p, v, retval)
len = sizeof(luts.l_version);
for (cp = luts.l_version; len--; ++cp)
if (*cp == '\n' || *cp == '\t')
- if (len > 1)
- *cp = ' ';
- else
- *cp = '\0';
+ *cp = (len > 1) ? ' ' : '\0';
return copyout(&luts, SCARG(uap, up), sizeof(luts));
}
@@ -466,10 +460,7 @@ linux_sys_oldolduname(p, v, retval)
len = sizeof(luts.l_version);
for (cp = luts.l_version; len--; ++cp)
if (*cp == '\n' || *cp == '\t')
- if (len > 1)
- *cp = ' ';
- else
- *cp = '\0';
+ *cp = (len > 1) ? ' ' : '\0';
return copyout(&luts, SCARG(uap, up), sizeof(luts));
}