Hi tech@,

Here is a diff to ansify cpu_sysctl() on mips64 platforms.

Comments? OK?

Index: sys/arch/loongson/loongson/machdep.c
===================================================================
RCS file: /cvs/src/sys/arch/loongson/loongson/machdep.c,v
retrieving revision 1.70
diff -u -p -r1.70 machdep.c
--- sys/arch/loongson/loongson/machdep.c        16 Dec 2016 12:01:19 -0000      
1.70
+++ sys/arch/loongson/loongson/machdep.c        5 Jan 2017 22:27:45 -0000
@@ -1003,14 +1003,8 @@ cpu_startup()
  * Machine dependent system variables.
  */
 int
-cpu_sysctl(name, namelen, oldp, oldlenp, newp, newlen, p)
-       int *name;
-       u_int namelen;
-       void *oldp;
-       size_t *oldlenp;
-       void *newp;
-       size_t newlen;
-       struct proc *p;
+cpu_sysctl(int *name, u_int namelen, void *oldp, size_t *oldlenp, void *newp,
+    size_t newlen, struct proc *p)
 {
        /* All sysctl names at this level are terminal. */
        if (namelen != 1)
Index: sys/arch/octeon/octeon/machdep.c
===================================================================
RCS file: /cvs/src/sys/arch/octeon/octeon/machdep.c,v
retrieving revision 1.81
diff -u -p -r1.81 machdep.c
--- sys/arch/octeon/octeon/machdep.c    17 Dec 2016 14:14:09 -0000      1.81
+++ sys/arch/octeon/octeon/machdep.c    5 Jan 2017 22:27:45 -0000
@@ -669,14 +669,8 @@ process_bootargs(void)
  * Machine dependent system variables.
  */
 int
-cpu_sysctl(name, namelen, oldp, oldlenp, newp, newlen, p)
-       int *name;
-       u_int namelen;
-       void *oldp;
-       size_t *oldlenp;
-       void *newp;
-       size_t newlen;
-       struct proc *p;
+cpu_sysctl(int *name, u_int namelen, void *oldp, size_t *oldlenp, void *newp,
+    size_t newlen, struct proc *p)
 {
        /* All sysctl names at this level are terminal. */
        if (namelen != 1)
Index: sys/arch/sgi/sgi/machdep.c
===================================================================
RCS file: /cvs/src/sys/arch/sgi/sgi/machdep.c,v
retrieving revision 1.153
diff -u -p -r1.153 machdep.c
--- sys/arch/sgi/sgi/machdep.c  9 Oct 2016 11:25:40 -0000       1.153
+++ sys/arch/sgi/sgi/machdep.c  5 Jan 2017 22:27:45 -0000
@@ -795,14 +795,8 @@ cpu_startup()
  * Machine dependent system variables.
  */
 int
-cpu_sysctl(name, namelen, oldp, oldlenp, newp, newlen, p)
-       int *name;
-       u_int namelen;
-       void *oldp;
-       size_t *oldlenp;
-       void *newp;
-       size_t newlen;
-       struct proc *p;
+cpu_sysctl(int *name, u_int namelen, void *oldp, size_t *oldlenp, void *newp,
+    size_t newlen, struct proc *p)
 {
        /* All sysctl names at this level are terminal. */
        if (namelen != 1)

Reply via email to