NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

lib/46007: ANSIfy sysctl.c.



>Number:         46007
>Category:       lib
>Synopsis:       ANSIfy sysctl.c.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    lib-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Feb 12 12:05:01 +0000 2012
>Originator:     Henning Petersen
>Release:        NetBSD-current
>Organization:
>Environment:
>Description:
ANSIfy sysctl.c.

>How-To-Repeat:

>Fix:
diff -u -p -r1.30 sysctl.c
--- lib/libc/gen/sysctl.c       27 Aug 2008 08:56:49 -0000      1.30
+++ lib/libc/gen/sysctl.c       5 Feb 2012 11:49:55 -0000
@@ -69,12 +69,8 @@ static size_t __cvt_node_out(uint, const
 #include <stdlib.h>
 
 int
-sysctl(name, namelen, oldp, oldlenp, newp, newlen)
-       const int *name;
-       unsigned int namelen;
-       void *oldp;
-       const void *newp;
-       size_t *oldlenp, newlen;
+sysctl(const int *name, u_int namelen, void *oldp,
+       size_t *oldlenp, const void *newp, size_t newlen)
 {
        size_t oldlen, savelen;
        int error;
@@ -104,12 +100,8 @@ sysctl(name, namelen, oldp, oldlenp, new
 }
 
 static int
-user_sysctl(name, namelen, oldp, oldlenp, newp, newlen)
-       const int *name;
-       unsigned int namelen;
-       void *oldp;
-       const void *newp;
-       size_t *oldlenp, newlen;
+user_sysctl(const int *name, u_int namelen, void *oldp,
+       size_t *oldlenp, const void *newp, size_t newlen)
 {
 #define _INT(s, n, v, d) {                                     \
        .sysctl_flags = CTLFLAG_IMMEDIATE|CTLFLAG_PERMANENT|    \



Home | Main Index | Thread Index | Old Index