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