shut up egcs complaints by adding braces
This commit is contained in:
parent
4a2f07c9cd
commit
036f631693
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: linux_oldolduname.c,v 1.47 1998/10/01 04:05:55 erh Exp $ */
|
||||
/* $NetBSD: linux_oldolduname.c,v 1.48 1998/10/01 18:58:28 perry Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
@ -107,12 +107,14 @@ linux_sys_oldolduname(p, v, retval)
|
||||
|
||||
/* This part taken from the the uname() in libc */
|
||||
len = sizeof(luts.l_version);
|
||||
for (cp = luts.l_version; len--; ++cp)
|
||||
if (*cp == '\n' || *cp == '\t')
|
||||
for (cp = luts.l_version; len--; ++cp) {
|
||||
if (*cp == '\n' || *cp == '\t') {
|
||||
if (len > 1)
|
||||
*cp = ' ';
|
||||
else
|
||||
*cp = '\0';
|
||||
}
|
||||
}
|
||||
|
||||
return copyout(&luts, SCARG(uap, up), sizeof(luts));
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: linux_oldolduname.c,v 1.47 1998/10/01 04:05:55 erh Exp $ */
|
||||
/* $NetBSD: linux_oldolduname.c,v 1.48 1998/10/01 18:58:28 perry Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
@ -107,12 +107,14 @@ linux_sys_oldolduname(p, v, retval)
|
||||
|
||||
/* This part taken from the the uname() in libc */
|
||||
len = sizeof(luts.l_version);
|
||||
for (cp = luts.l_version; len--; ++cp)
|
||||
if (*cp == '\n' || *cp == '\t')
|
||||
for (cp = luts.l_version; len--; ++cp) {
|
||||
if (*cp == '\n' || *cp == '\t') {
|
||||
if (len > 1)
|
||||
*cp = ' ';
|
||||
else
|
||||
*cp = '\0';
|
||||
}
|
||||
}
|
||||
|
||||
return copyout(&luts, SCARG(uap, up), sizeof(luts));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user