Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/cats/cats de-__P and ansify some functions.



details:   https://anonhg.NetBSD.org/src/rev/0799f4b631a3
branches:  trunk
changeset: 581713:0799f4b631a3
user:      chris <chris%NetBSD.org@localhost>
date:      Fri Jun 03 23:42:50 2005 +0000

description:
de-__P and ansify some functions.

Also add a const.

diffstat:

 sys/arch/cats/cats/autoconf.c     |  16 ++++++++--------
 sys/arch/cats/cats/cats_machdep.c |  28 ++++++++++++----------------
 2 files changed, 20 insertions(+), 24 deletions(-)

diffs (127 lines):

diff -r f4e6b350f323 -r 0799f4b631a3 sys/arch/cats/cats/autoconf.c
--- a/sys/arch/cats/cats/autoconf.c     Fri Jun 03 23:28:40 2005 +0000
+++ b/sys/arch/cats/cats/autoconf.c     Fri Jun 03 23:42:50 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: autoconf.c,v 1.8 2005/01/02 22:47:26 chris Exp $       */
+/*     $NetBSD: autoconf.c,v 1.9 2005/06/03 23:42:50 chris Exp $       */
 
 /*
  * Copyright (c) 1994-1998 Mark Brinicombe.
@@ -41,7 +41,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.8 2005/01/02 22:47:26 chris Exp $");
+__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.9 2005/06/03 23:42:50 chris Exp $");
 
 #include "opt_md.h"
 
@@ -58,19 +58,19 @@
 
 #include "isa.h"
 
-void isa_intr_init (void);
+void isa_intr_init(void);
 
-static void get_device __P((char *name));
-static void set_root_device __P((void));
+static void get_device(const char *name);
+static void set_root_device(void);
 
 /* Decode a device name to a major and minor number */
 
 static void
-get_device(name)
-       char *name;
+get_device(const char *name)
 {
        int unit, part;
-       char devname[16], buf[32], *cp;
+       char devname[16], buf[32];
+       const char *cp;
        struct device *dv;
 
        if (strncmp(name, "/dev/", 5) == 0)
diff -r f4e6b350f323 -r 0799f4b631a3 sys/arch/cats/cats/cats_machdep.c
--- a/sys/arch/cats/cats/cats_machdep.c Fri Jun 03 23:28:40 2005 +0000
+++ b/sys/arch/cats/cats/cats_machdep.c Fri Jun 03 23:42:50 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cats_machdep.c,v 1.54 2005/06/03 23:28:40 chris Exp $  */
+/*     $NetBSD: cats_machdep.c,v 1.55 2005/06/03 23:42:50 chris Exp $  */
 
 /*
  * Copyright (c) 1997,1998 Mark Brinicombe.
@@ -40,7 +40,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cats_machdep.c,v 1.54 2005/06/03 23:28:40 chris Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cats_machdep.c,v 1.55 2005/06/03 23:42:50 chris Exp $");
 
 #include "opt_ddb.h"
 #include "opt_pmap_debug.h"
@@ -167,13 +167,13 @@
 
 /* Prototypes */
 
-void consinit          __P((void));
+void consinit(void);
 
-int fcomcnattach __P((u_int iobase, int rate,tcflag_t cflag));
-int fcomcndetach __P((void));
+int fcomcnattach(u_int iobase, int rate, tcflag_t cflag);
+int fcomcndetach(void);
 
-static void process_kernel_args        __P((const char *));
-extern void configure          __P((void));
+static void process_kernel_args(const char *);
+extern void configure(void);
 
 /* A load of console goo. */
 #include "vga.h"
@@ -225,9 +225,7 @@
  */
 
 void
-cpu_reboot(howto, bootstr)
-       int howto;
-       char *bootstr;
+cpu_reboot(int howto, char *bootstr)
 {
 #ifdef DIAGNOSTIC
        /* info */
@@ -348,8 +346,7 @@
  */
 
 u_int
-initarm(arm_bootargs)
-       void *arm_bootargs;
+initarm(void *arm_bootargs)
 {
        struct ebsaboot *bootinfo = arm_bootargs;
        int loop;
@@ -924,8 +921,7 @@
 }
 
 static void
-process_kernel_args(loader_args)
-       const char *loader_args;
+process_kernel_args(const char *loader_args)
 {
        char *args;
        boothowto = 0;
@@ -956,7 +952,7 @@
 
 extern struct bus_space footbridge_pci_io_bs_tag;
 extern struct bus_space footbridge_pci_mem_bs_tag;
-void footbridge_pci_bs_tag_init __P((void));
+void footbridge_pci_bs_tag_init(void);
 
 void
 consinit(void)
@@ -1003,4 +999,4 @@
                fcomcnattach(DC21285_ARMCSR_VBASE, comcnspeed, comcnmode);
 }
 
-/* End of ebsa285_machdep.c */
+/* End of cats_machdep.c */



Home | Main Index | Thread Index | Old Index