bug-hurd
[Top][All Lists]
Advanced

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

[PATCH 55/68] Declare void argument lists


From: Marin Ramesa
Subject: [PATCH 55/68] Declare void argument lists
Date: Fri, 29 Nov 2013 22:54:20 +0100

Declare void argument lists and further normalize whitespace.

---
 ddb/db_break.c           |  8 +++---
 ddb/db_command.c         |  4 +--
 ddb/db_command.h         |  2 +-
 ddb/db_cond.c            |  2 +-
 ddb/db_examine.c         |  4 +--
 ddb/db_input.c           |  4 +--
 ddb/db_macro.c           |  6 ++---
 ddb/db_mp.c              | 14 +++++------
 ddb/db_output.c          |  2 +-
 ddb/db_run.c             |  2 +-
 ddb/db_variables.c       |  2 +-
 ddb/db_variables.h       |  2 +-
 ddb/db_watch.c           |  2 +-
 ddb/db_watch.h           |  2 +-
 device/cons.c            |  6 ++---
 device/dev_lookup.c      |  2 +-
 device/dev_name.c        |  6 ++---
 device/device_init.c     |  2 +-
 device/ds_routines.c     |  7 +++---
 device/net_io.c          |  8 +++---
 i386/i386/debug_i386.c   |  5 ++--
 i386/i386/fpu.c          | 18 +++++++-------
 i386/i386/gdt.c          |  2 +-
 i386/i386/idt.c          |  2 +-
 i386/i386/ktss.c         |  2 +-
 i386/i386/ldt.c          |  2 +-
 i386/i386/pcb.c          |  2 +-
 i386/i386/pic.c          |  4 +--
 i386/i386/pit.c          |  2 +-
 i386/i386/trap.c         |  4 +--
 i386/i386at/int_init.c   |  2 +-
 i386/i386at/kd.c         | 63 ++++++++++++++++++++++++------------------------
 i386/i386at/kd_event.c   |  6 ++---
 i386/i386at/model_dep.c  |  2 +-
 i386/i386at/rtc.c        |  5 ++--
 i386/intel/pmap.c        | 10 ++++----
 ipc/ipc_init.c           |  2 +-
 kern/act.c               |  6 ++---
 kern/ast.c               |  4 +--
 kern/boot_script.c       |  2 +-
 kern/bootstrap.c         |  6 ++---
 kern/exception.c         |  4 +--
 kern/mach_clock.c        | 10 ++++----
 kern/startup.c           |  6 ++---
 kern/syscall_emulation.c |  2 +-
 kern/syscall_sw.c        |  5 ++--
 kern/time_stamp.c        |  2 +-
 kern/timer.c             |  2 +-
 vm/vm_fault.c            |  2 +-
 vm/vm_init.c             |  4 +--
 vm/vm_pageout.c          |  8 +++---
 51 files changed, 139 insertions(+), 144 deletions(-)

diff --git a/ddb/db_break.c b/ddb/db_break.c
index e0c3d18..1c70e80 100644
--- a/ddb/db_break.c
+++ b/ddb/db_break.c
@@ -225,7 +225,7 @@ db_force_delete_breakpoint(
 }
 
 void
-db_check_breakpoint_valid()
+db_check_breakpoint_valid(void)
 {
        db_thread_breakpoint_t tbp, tbp_next;
        db_breakpoint_t bkpt, *bkptp;
@@ -522,7 +522,7 @@ db_delete_temp_breakpoint(
  * List breakpoints.
  */
 void
-db_list_breakpoints()
+db_list_breakpoints(void)
 {
        db_breakpoint_t bkpt;
 
@@ -596,7 +596,7 @@ db_list_breakpoints()
 /* Delete breakpoint */
 /*ARGSUSED*/
 void
-db_delete_cmd()
+db_delete_cmd(void)
 {
        int n;
        thread_t thread;
@@ -729,7 +729,7 @@ db_breakpoint_cmd(
 
 /* list breakpoints */
 void
-db_listbreak_cmd()
+db_listbreak_cmd(void)
 {
        db_list_breakpoints();
 }
diff --git a/ddb/db_command.c b/ddb/db_command.c
index f9c063a..34212a5 100644
--- a/ddb/db_command.c
+++ b/ddb/db_command.c
@@ -383,7 +383,7 @@ void db_machine_commands_install(struct db_command *ptr)
 struct db_command      *db_last_command = 0;
 
 void
-db_help_cmd()
+db_help_cmd(void)
 {
        struct db_command *cmd = db_command_table;
 
@@ -470,7 +470,7 @@ void db_error(char *s)
  * !expr(arg,arg,arg)
  */
 void
-db_fncall()
+db_fncall(void)
 {
        db_expr_t       fn_addr;
 #define        MAXARGS         11
diff --git a/ddb/db_command.h b/ddb/db_command.h
index 64e3b5c..638be39 100644
--- a/ddb/db_command.h
+++ b/ddb/db_command.h
@@ -71,7 +71,7 @@ struct db_command {
 
 extern boolean_t db_exec_cmd_nest(char *cmd, int size);
 
-void db_fncall();
+void db_fncall(void);
 
 void db_help_cmd(void);
 
diff --git a/ddb/db_cond.c b/ddb/db_cond.c
index e971cfd..0952667 100644
--- a/ddb/db_cond.c
+++ b/ddb/db_cond.c
@@ -119,7 +119,7 @@ db_cond_print(db_thread_breakpoint_t bkpt)
 }
 
 void
-db_cond_cmd()
+db_cond_cmd(void)
 {
        int c;
        struct db_cond *cp;
diff --git a/ddb/db_examine.c b/ddb/db_examine.c
index 86212f7..393f68d 100644
--- a/ddb/db_examine.c
+++ b/ddb/db_examine.c
@@ -256,7 +256,7 @@ char        db_print_format = 'x';
 
 /*ARGSUSED*/
 void
-db_print_cmd()
+db_print_cmd(void)
 {
        db_expr_t       value;
        int             t;
@@ -345,7 +345,7 @@ db_strcpy(
  * Syntax: search [/bhl] addr value [mask] [,count] [thread]
  */
 void
-db_search_cmd()
+db_search_cmd(void)
 {
        int             t;
        db_addr_t       addr;
diff --git a/ddb/db_input.c b/ddb/db_input.c
index 7ab2e91..b2ea89e 100644
--- a/ddb/db_input.c
+++ b/ddb/db_input.c
@@ -111,7 +111,7 @@ db_delete(
 }
 
 void
-db_delete_line()
+db_delete_line(void)
 {
        db_delete(db_le - db_lc, DEL_FWD);
        db_delete(db_lc - db_lbuf_start, DEL_BWD);
@@ -348,7 +348,7 @@ db_readline(
 }
 
 void
-db_check_interrupt()
+db_check_interrupt(void)
 {
        int     c;
 
diff --git a/ddb/db_macro.c b/ddb/db_macro.c
index af04235..9f78169 100644
--- a/ddb/db_macro.c
+++ b/ddb/db_macro.c
@@ -71,7 +71,7 @@ db_lookup_macro(char *name)
 }
 
 void
-db_def_macro_cmd()
+db_def_macro_cmd(void)
 {
        char *p;
        int c;
@@ -102,7 +102,7 @@ db_def_macro_cmd()
 }
 
 void
-db_del_macro_cmd()
+db_del_macro_cmd(void)
 {
        struct db_user_macro *mp;
 
@@ -118,7 +118,7 @@ db_del_macro_cmd()
 }
 
 void
-db_show_macro()
+db_show_macro(void)
 {
        struct db_user_macro *mp;
        int  t;
diff --git a/ddb/db_mp.c b/ddb/db_mp.c
index 1783718..af4798d 100644
--- a/ddb/db_mp.c
+++ b/ddb/db_mp.c
@@ -63,7 +63,7 @@ int   db_enter_debug = 0;
  */
 
 boolean_t
-db_enter()
+db_enter(void)
 {
        int     mycpu = cpu_number();
 
@@ -108,7 +108,7 @@ db_enter()
  * Leave debugger.
  */
 void
-db_leave()
+db_leave(void)
 {
        int     mycpu = cpu_number();
 
@@ -142,7 +142,7 @@ db_leave()
  */
 
 void
-remote_db() {
+remote_db(void) {
        int     my_cpu = cpu_number();
        int     i;
 
@@ -248,7 +248,7 @@ db_on(int cpu)
  * in kernel debugger and wants to stop other CPUs
  */
 void
-remote_db_enter()
+remote_db_enter(void)
 {
        db_slave[cpu_number()]++;
        kdb_kintr();
@@ -265,7 +265,7 @@ remote_db_enter()
  * is active on another cpu.
  */
 void
-lock_db()
+lock_db(void)
 {
        int     my_cpu = cpu_number();
 
@@ -296,14 +296,14 @@ lock_db()
 }
 
 void
-unlock_db()
+unlock_db(void)
 {
        simple_unlock(&db_lock);
 }
 
 #ifdef sketch
 void
-db_console()
+db_console(void)
 {
                        if (i_bit(CBUS_PUT_CHAR, my_word)) {
                                volatile u_char c = cbus_ochar;
diff --git a/ddb/db_output.c b/ddb/db_output.c
index 23518fc..db71a7a 100644
--- a/ddb/db_output.c
+++ b/ddb/db_output.c
@@ -98,7 +98,7 @@ db_force_whitespace(void)
 }
 
 static void
-db_more()
+db_more(void)
 {
        char *p;
        boolean_t quit_output = FALSE;
diff --git a/ddb/db_run.c b/ddb/db_run.c
index 476cda6..0998ebd 100644
--- a/ddb/db_run.c
+++ b/ddb/db_run.c
@@ -426,7 +426,7 @@ db_continue_cmd(
 }
 
 boolean_t
-db_in_single_step()
+db_in_single_step(void)
 {
        return(db_run_mode != STEP_NONE && db_run_mode != STEP_CONTINUE);
 }
diff --git a/ddb/db_variables.c b/ddb/db_variables.c
index 205dc13..81ddbc9 100644
--- a/ddb/db_variables.c
+++ b/ddb/db_variables.c
@@ -199,7 +199,7 @@ db_read_write_variable(
 }
 
 void
-db_set_cmd()
+db_set_cmd(void)
 {
        db_expr_t       value;
        int             t;
diff --git a/ddb/db_variables.h b/ddb/db_variables.h
index 533c064..e627076 100644
--- a/ddb/db_variables.h
+++ b/ddb/db_variables.h
@@ -80,7 +80,7 @@ extern struct db_variable     *db_eregs;
 
 extern int db_get_variable(db_expr_t *valuep);
 
-void db_set_cmd();
+void db_set_cmd(void);
 
 void db_read_write_variable(struct db_variable *, db_expr_t *, int, struct 
db_var_aux_param *);
 
diff --git a/ddb/db_watch.c b/ddb/db_watch.c
index e090925..753154f 100644
--- a/ddb/db_watch.c
+++ b/ddb/db_watch.c
@@ -252,7 +252,7 @@ db_watchpoint_cmd(
 
 /* list watchpoints */
 void
-db_listwatch_cmd()
+db_listwatch_cmd(void)
 {
        db_list_watchpoints();
 }
diff --git a/ddb/db_watch.h b/ddb/db_watch.h
index fb95ae5..8e0f32f 100644
--- a/ddb/db_watch.h
+++ b/ddb/db_watch.h
@@ -57,7 +57,7 @@ extern void db_set_watchpoint(task_t task, db_addr_t addr, 
vm_size_t size);
 extern void db_delete_watchpoint(task_t task, db_addr_t addr);
 extern void db_list_watchpoints(void);
 
-void db_listwatch_cmd();
+void db_listwatch_cmd(void);
 
 void db_deletewatch_cmd(
        db_expr_t       addr,
diff --git a/device/cons.c b/device/cons.c
index ceba7f2..2251f0b 100644
--- a/device/cons.c
+++ b/device/cons.c
@@ -58,7 +58,7 @@ static        boolean_t consbufused = FALSE;
 #endif
 
 void
-cninit()
+cninit(void)
 {
        struct consdev *cp;
        dev_ops_t cn_ops;
@@ -120,7 +120,7 @@ cninit()
 
 
 int
-cngetc()
+cngetc(void)
 {
        if (cn_tab)
                return ((*cn_tab->cn_getc)(cn_tab->cn_dev, 1));
@@ -130,7 +130,7 @@ cngetc()
 }
 
 int
-cnmaygetc()
+cnmaygetc(void)
 {
        if (cn_tab)
                return((*cn_tab->cn_getc)(cn_tab->cn_dev, 0));
diff --git a/device/dev_lookup.c b/device/dev_lookup.c
index a8d7214..dc231f8 100644
--- a/device/dev_lookup.c
+++ b/device/dev_lookup.c
@@ -355,7 +355,7 @@ dev_map(
  * Initialization
  */
 void
-dev_lookup_init()
+dev_lookup_init(void)
 {
        int     i;
 
diff --git a/device/dev_name.c b/device/dev_name.c
index 23f5756..157f7d0 100644
--- a/device/dev_name.c
+++ b/device/dev_name.c
@@ -37,18 +37,18 @@
 /*
  * Routines placed in empty entries in the device tables
  */
-int nulldev()
+int nulldev(void)
 {
        return (D_SUCCESS);
 }
 
-int nodev()
+int nodev(void)
 {
        return (D_INVALID_OPERATION);
 }
 
 vm_offset_t
-nomap()
+nomap(void)
 {
        return (D_INVALID_OPERATION);
 }
diff --git a/device/device_init.c b/device/device_init.c
index 53d421b..0945f4e 100644
--- a/device/device_init.c
+++ b/device/device_init.c
@@ -45,7 +45,7 @@
 ipc_port_t     master_device_port;
 
 void
-device_service_create()
+device_service_create(void)
 {
        master_device_port = ipc_port_alloc_kernel();
        if (master_device_port == IP_NULL)
diff --git a/device/ds_routines.c b/device/ds_routines.c
index eee14b4..bd318dc 100644
--- a/device/ds_routines.c
+++ b/device/ds_routines.c
@@ -1469,7 +1469,7 @@ void iodone(io_req_t ior)
        splx(s);
 }
 
-void io_done_thread_continue()
+void io_done_thread_continue(void)
 {
        for (;;) {
            spl_t               s;
@@ -1504,7 +1504,7 @@ void io_done_thread_continue()
        }
 }
 
-void io_done_thread()
+void io_done_thread(void)
 {
        /*
         * Set thread privileges and highest priority.
@@ -1521,7 +1521,7 @@ void io_done_thread()
 
 static void mach_device_trap_init(void);               /* forward */
 
-void mach_device_init()
+void mach_device_init(void)
 {
        vm_offset_t     device_io_min, device_io_max;
 
@@ -1572,7 +1572,6 @@ void iowait(io_req_t ior)
     splx(s);
 }
 
-
 /*
  * Device trap support.
  */
diff --git a/device/net_io.c b/device/net_io.c
index 738c142..f2c4c06 100644
--- a/device/net_io.c
+++ b/device/net_io.c
@@ -560,7 +560,7 @@ boolean_t net_deliver(boolean_t nonblocking)
  *     net_kmsg_get will do a wakeup.
  */
 
-void net_ast()
+void net_ast(void)
 {
        spl_t s;
 
@@ -589,7 +589,7 @@ void net_ast()
        (void) splx(s);
 }
 
-void net_thread_continue()
+void net_thread_continue(void)
 {
        for (;;) {
                spl_t s;
@@ -615,7 +615,7 @@ void net_thread_continue()
        }
 }
 
-void net_thread()
+void net_thread(void)
 {
        spl_t s;
 
@@ -1522,7 +1522,7 @@ net_write(
  * Initialize the whole package.
  */
 void
-net_io_init()
+net_io_init(void)
 {
        vm_size_t               size;
 
diff --git a/i386/i386/debug_i386.c b/i386/i386/debug_i386.c
index 937d7b4..01f26a0 100644
--- a/i386/i386/debug_i386.c
+++ b/i386/i386/debug_i386.c
@@ -59,9 +59,8 @@ struct debug_trace_entry
 struct debug_trace_entry debug_trace_buf[DEBUG_TRACE_LEN];
 int debug_trace_pos;
 
-
 void
-debug_trace_reset()
+debug_trace_reset(void)
 {
        int s = splhigh();
        debug_trace_pos = 0;
@@ -89,7 +88,7 @@ print_entry(int i, int *col)
 }
 
 void
-debug_trace_dump()
+debug_trace_dump(void)
 {
        int s = splhigh();
        int i;
diff --git a/i386/i386/fpu.c b/i386/i386/fpu.c
index 8961103..f1b25ce 100644
--- a/i386/i386/fpu.c
+++ b/i386/i386/fpu.c
@@ -99,7 +99,7 @@ volatile thread_t     fp_intr_thread = THREAD_NULL;
  * Called on each CPU.
  */
 void
-init_fpu()
+init_fpu(void)
 {
        unsigned short  status, control;
 
@@ -183,7 +183,7 @@ init_fpu()
  * Initialize FP handling.
  */
 void
-fpu_module_init()
+fpu_module_init(void)
 {
        kmem_cache_init(&ifps_cache, "i386_fpsave_state",
                        sizeof(struct i386_fpsave_state), 16,
@@ -492,7 +492,7 @@ ASSERT_IPL(SPL0);
  *
  * Use 53-bit precision.
  */
-void fpinit()
+void fpinit(void)
 {
        unsigned short  control;
 
@@ -516,7 +516,7 @@ ASSERT_IPL(SPL0);
  * Coprocessor not present.
  */
 void
-fpnoextflt()
+fpnoextflt(void)
 {
        /*
         * Enable FPU use.
@@ -560,7 +560,7 @@ ASSERT_IPL(SPL0);
  * Re-initialize FPU.  Floating point state is not valid.
  */
 void
-fpextovrflt()
+fpextovrflt(void)
 {
        thread_t        thread = current_thread();
        pcb_t           pcb;
@@ -609,7 +609,7 @@ fpextovrflt()
 }
 
 static int
-fphandleerr()
+fphandleerr(void)
 {
        thread_t        thread = current_thread();
 
@@ -656,7 +656,7 @@ fphandleerr()
  * FPU error. Called by exception handler.
  */
 void
-fpexterrflt()
+fpexterrflt(void)
 {
        thread_t        thread = current_thread();
 
@@ -681,7 +681,7 @@ fpexterrflt()
  * FPU error. Called by AST.
  */
 void
-fpastintr()
+fpastintr(void)
 {
        thread_t        thread = current_thread();
 
@@ -817,7 +817,7 @@ ASSERT_IPL(SPL0);
  * Locking not needed; always called on the current thread.
  */
 void
-fp_state_alloc()
+fp_state_alloc(void)
 {
        pcb_t   pcb = current_thread()->pcb;
        struct i386_fpsave_state *ifps;
diff --git a/i386/i386/gdt.c b/i386/i386/gdt.c
index 5523fea..c895eb3 100644
--- a/i386/i386/gdt.c
+++ b/i386/i386/gdt.c
@@ -46,7 +46,7 @@ extern
 struct real_descriptor gdt[GDTSZ];
 
 void
-gdt_init()
+gdt_init(void)
 {
        /* Initialize the kernel code and data segment descriptors.  */
        fill_gdt_descriptor(KERNEL_CS,
diff --git a/i386/i386/idt.c b/i386/i386/idt.c
index 882764f..d304ec3 100644
--- a/i386/i386/idt.c
+++ b/i386/i386/idt.c
@@ -36,7 +36,7 @@ struct idt_init_entry
 };
 extern struct idt_init_entry idt_inittab[];
 
-void idt_init()
+void idt_init(void)
 {
 #ifdef MACH_PV_DESCRIPTORS
        if (hyp_set_trap_table(kvtolin(idt_inittab)))
diff --git a/i386/i386/ktss.c b/i386/i386/ktss.c
index e10edd2..35ce093 100644
--- a/i386/i386/ktss.c
+++ b/i386/i386/ktss.c
@@ -41,7 +41,7 @@
 struct task_tss ktss;
 
 void
-ktss_init()
+ktss_init(void)
 {
        /* XXX temporary exception stack */
        static int exception_stack[1024];
diff --git a/i386/i386/ldt.c b/i386/i386/ldt.c
index 31d842f..4acf9cf 100644
--- a/i386/i386/ldt.c
+++ b/i386/i386/ldt.c
@@ -45,7 +45,7 @@ extern
 struct real_descriptor ldt[LDTSZ];
 
 void
-ldt_init()
+ldt_init(void)
 {
 #ifdef MACH_PV_DESCRIPTORS
 #ifdef MACH_PV_PAGETABLES
diff --git a/i386/i386/pcb.c b/i386/i386/pcb.c
index 888f43e..fdfc771 100644
--- a/i386/i386/pcb.c
+++ b/i386/i386/pcb.c
@@ -362,7 +362,7 @@ thread_t switch_context(
        return Switch_context(old, continuation, new);
 }
 
-void pcb_module_init()
+void pcb_module_init(void)
 {
        kmem_cache_init(&pcb_cache, "pcb", sizeof(struct pcb), 0,
                        NULL, NULL, NULL, 0);
diff --git a/i386/i386/pic.c b/i386/i386/pic.c
index 50ca150..e09082e 100644
--- a/i386/i386/pic.c
+++ b/i386/i386/pic.c
@@ -105,7 +105,7 @@ u_short PICM_ICW4, PICS_ICW4 ;
 */
 
 void
-picinit()
+picinit(void)
 {
 
        asm("cli");
@@ -223,7 +223,7 @@ picinit()
 #define SLAVEACTV      0xFF00
 
 void
-form_pic_mask()
+form_pic_mask(void)
 {
        unsigned int i, j, bit, mask;
 
diff --git a/i386/i386/pit.c b/i386/i386/pit.c
index 4f156d8..3c301cf 100644
--- a/i386/i386/pit.c
+++ b/i386/i386/pit.c
@@ -67,7 +67,7 @@ int pit0_mode = PIT_C0|PIT_SQUAREMODE|PIT_READMODE ;
 unsigned int clknumb = CLKNUM;         /* interrupt interval for timer 0 */
 
 void
-clkstart()
+clkstart(void)
 {
        unsigned char   byte;
        unsigned long s;
diff --git a/i386/i386/trap.c b/i386/i386/trap.c
index e02d0a2..3121d79 100644
--- a/i386/i386/trap.c
+++ b/i386/i386/trap.c
@@ -70,7 +70,7 @@ extern struct db_watchpoint *db_watchpoint_list;
 extern boolean_t db_watchpoints_inserted;
 
 void
-thread_kdb_return()
+thread_kdb_return(void)
 {
        thread_t thread = current_thread();
        struct i386_saved_state *regs = USER_REGS(thread);
@@ -571,7 +571,7 @@ int sti_count = 0;
  * AT-bus machines.
  */
 void
-i386_astintr()
+i386_astintr(void)
 {
        int     mycpu = cpu_number();
 
diff --git a/i386/i386at/int_init.c b/i386/i386at/int_init.c
index 0f00b86..43daad8 100644
--- a/i386/i386at/int_init.c
+++ b/i386/i386at/int_init.c
@@ -27,7 +27,7 @@
 /* defined in locore.S */
 extern vm_offset_t int_entry_table[];
 
-void int_init()
+void int_init(void)
 {
        int i;
 
diff --git a/i386/i386at/kd.c b/i386/i386at/kd.c
index 51a3a7f..53b549e 100644
--- a/i386/i386at/kd.c
+++ b/i386/i386at/kd.c
@@ -112,7 +112,7 @@ static void charmvup(csrpos_t, csrpos_t, int);
 static void charmvdown(csrpos_t, csrpos_t, int); 
 static void charclear(csrpos_t, int, char); 
 static void charsetcursor(csrpos_t);
-static void kd_noopreset();
+static void kd_noopreset(void);
 
 /*
  * These routines define the interface to the device-specific layer.
@@ -129,7 +129,6 @@ void        (*kd_dreset)() = kd_noopreset;  /* prepare for 
reboot */
 /* forward declarations */
 unsigned char kd_getdata(), state2leds();
 
-
 /*
  * Globals used for both character-based controllers and bitmap-based
  * controllers.  Default is EGA.
@@ -364,7 +363,7 @@ int kd_pollc = 0;
  *     Warning: uses outb(). You may prefer to use kd_debug_put.
  */
 void
-feep()
+feep(void)
 {
        int i;
 
@@ -375,7 +374,7 @@ feep()
 }
 
 void
-pause()
+pause(void)
 {
        int i;
 
@@ -858,7 +857,7 @@ kdintr(int vec)
  *     drop the ack on the floor.
  */
 void
-kd_handle_ack()
+kd_handle_ack(void)
 {
        switch (kd_ack) {
        case SET_LEDS:
@@ -883,7 +882,7 @@ kd_handle_ack()
  *     Resend a missed keyboard command or data byte.
  */
 void
-kd_resend()
+kd_resend(void)
 {
        if (kd_ack == NOT_WAITING)
                printf("unexpected RESEND from keyboard\n");
@@ -1140,7 +1139,7 @@ kdstop(
  *
  */
 void
-kdinit()
+kdinit(void)
 {
        void    kd_xga_init();
        unsigned char   k_comm;         /* keyboard command byte */
@@ -1229,7 +1228,7 @@ kd_belloff(void * param)
  *
  */
 void
-kd_bellon()
+kd_bellon(void)
 {
        unsigned char   status;
 
@@ -1336,7 +1335,7 @@ kd_setpos(csrpos_t newpos)
  *
  */
 void
-kd_scrollup()
+kd_scrollup(void)
 {
        csrpos_t to;
        csrpos_t from;
@@ -1365,7 +1364,7 @@ kd_scrollup()
  *
  */
 void
-kd_scrolldn()
+kd_scrolldn(void)
 {
        csrpos_t to;
        csrpos_t from;
@@ -1398,7 +1397,7 @@ kd_scrolldn()
  *
  */
 void
-kd_parseesc()
+kd_parseesc(void)
 {
        u_char  *escp;
 
@@ -1733,7 +1732,7 @@ kd_parserest(u_char *cp)
 }
 
 void
-kd_tab()
+kd_tab(void)
 {
     int i;
 
@@ -1753,7 +1752,7 @@ kd_tab()
  *
  */
 void
-kd_cls()
+kd_cls(void)
 {
        (*kd_dclear)(0, ONE_PAGE/ONE_SPACE, kd_attr);
        return;
@@ -1770,7 +1769,7 @@ kd_cls()
  *
  */
 void
-kd_home()
+kd_home(void)
 {
        kd_setpos(0);
        return;
@@ -1786,7 +1785,7 @@ kd_home()
  *
  */
 void
-kd_up()
+kd_up(void)
 {
        if (kd_curpos < ONE_LINE)
                kd_scrolldn();
@@ -1805,7 +1804,7 @@ kd_up()
  *
  */
 void
-kd_down()
+kd_down(void)
 {
        if (kd_curpos >= (ONE_PAGE - ONE_LINE))
                kd_scrollup();
@@ -1824,7 +1823,7 @@ kd_down()
  *
  */
 void
-kd_right()
+kd_right(void)
 {
        if (kd_curpos < (ONE_PAGE - ONE_SPACE))
                kd_setpos(kd_curpos + ONE_SPACE);
@@ -1845,7 +1844,7 @@ kd_right()
  *
  */
 void
-kd_left()
+kd_left(void)
 {
        if (0 < kd_curpos)
                kd_setpos(kd_curpos - ONE_SPACE);
@@ -1863,7 +1862,7 @@ kd_left()
  *
  */
 void
-kd_cr()
+kd_cr(void)
 {
        kd_setpos(BEG_OF_LINE(kd_curpos));
        return;
@@ -1880,7 +1879,7 @@ kd_cr()
  *
  */
 void
-kd_cltobcur()
+kd_cltobcur(void)
 {
        csrpos_t start;
        int     count;
@@ -1902,7 +1901,7 @@ kd_cltobcur()
  *
  */
 void
-kd_cltopcur()
+kd_cltopcur(void)
 {
        int     count;
 
@@ -1921,7 +1920,7 @@ kd_cltopcur()
  *
  */
 void
-kd_cltoecur()
+kd_cltoecur(void)
 {
        csrpos_t i;
        csrpos_t hold;
@@ -1943,7 +1942,7 @@ kd_cltoecur()
  *
  */
 void
-kd_clfrbcur()
+kd_clfrbcur(void)
 {
        csrpos_t i;
 
@@ -2102,7 +2101,7 @@ kd_erase(int number)
  *
  */
 void
-kd_eraseln()
+kd_eraseln(void)
 {
        csrpos_t i;
        csrpos_t stop;
@@ -2222,14 +2221,14 @@ kd_sendcmd(unsigned char ch)
  *     read.
  */
 unsigned char
-kd_getdata()
+kd_getdata(void)
 {
        while ((inb(K_STATUS) & K_OBUF_FUL) == 0);
        return(inb(K_RDWR));
 }
 
 unsigned char
-kd_cmdreg_read()
+kd_cmdreg_read(void)
 {
 int ch=KC_CMD_READ;
 
@@ -2253,7 +2252,7 @@ int ch=KC_CMD_WRITE;
 }
 
 void
-kd_mouse_drain()
+kd_mouse_drain(void)
 {
        int i;
        while(inb(K_STATUS) & K_IBUF_FUL);
@@ -2312,7 +2311,7 @@ kd_setleds1(u_char val)
 }
 
 void
-kd_setleds2()
+kd_setleds2(void)
 {
        kd_senddata(kd_nextled);
 }
@@ -2335,7 +2334,7 @@ cnsetleds(u_char val)
 }
 
 void
-kdreboot()
+kdreboot(void)
 {
        (*kd_dreset)();
 
@@ -2446,7 +2445,7 @@ int new_button = 0;
  *     Initialization specific to character-based graphics adapters.
  */
 void
-kd_xga_init()
+kd_xga_init(void)
 {
        csrpos_t        xga_getpos();
        unsigned char   screen;
@@ -2518,7 +2517,7 @@ kd_xga_init()
  *
  */
 csrpos_t
-xga_getpos()
+xga_getpos(void)
 
 {
        unsigned char   low;
@@ -2616,7 +2615,7 @@ charclear(
  *     No-op reset routine for kd_dreset.
  */
 static void
-kd_noopreset()
+kd_noopreset(void)
 {
 }
 
diff --git a/i386/i386at/kd_event.c b/i386/i386at/kd_event.c
index d639e96..31f68b1 100644
--- a/i386/i386at/kd_event.c
+++ b/i386/i386at/kd_event.c
@@ -90,7 +90,7 @@ static boolean_t initialized = FALSE;
  */
 
 void
-kbdinit()
+kbdinit(void)
 {
        spl_t s = SPLKD();
 
@@ -330,7 +330,7 @@ kdb_in_out(u_int *p)
 }
 
 void
-X_kdb_enter()
+X_kdb_enter(void)
 {
        u_int *u_ip, *endp;
 
@@ -341,7 +341,7 @@ X_kdb_enter()
 }
 
 void
-X_kdb_exit()
+X_kdb_exit(void)
 {
        u_int *u_ip, *endp;
 
diff --git a/i386/i386at/model_dep.c b/i386/i386at/model_dep.c
index 014e1c4..68a5a65 100644
--- a/i386/i386at/model_dep.c
+++ b/i386/i386at/model_dep.c
@@ -198,7 +198,7 @@ void machine_idle (int cpu)
 #endif /* MACH_HYP */
 }
 
-void machine_relax ()
+void machine_relax (void)
 {
        asm volatile ("rep; nop" : : : "memory");
 }
diff --git a/i386/i386at/rtc.c b/i386/i386at/rtc.c
index 5c79c8a..c62412d 100644
--- a/i386/i386at/rtc.c
+++ b/i386/i386at/rtc.c
@@ -56,7 +56,7 @@ WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 static int first_rtcopen_ever = 1;
 
 void
-rtcinit()
+rtcinit(void)
 {
        outb(RTC_ADDR, RTC_A);
        outb(RTC_DATA, RTC_DIV2 | RTC_RATE6);
@@ -64,7 +64,6 @@ rtcinit()
        outb(RTC_DATA, RTC_HM);
 }
 
-
 int
 rtcget(unsigned char *regs)
 {
@@ -166,7 +165,7 @@ readtodc(u_int *tp)
 }
 
 int
-writetodc()
+writetodc(void)
 {
        struct rtc_st rtclk;
        time_t n;
diff --git a/i386/intel/pmap.c b/i386/intel/pmap.c
index 83760cf..79f30be 100644
--- a/i386/intel/pmap.c
+++ b/i386/intel/pmap.c
@@ -574,7 +574,7 @@ vm_offset_t pmap_map_bd(
  *     and direct-map all physical memory.
  *     Called with mapping off.
  */
-void pmap_bootstrap()
+void pmap_bootstrap(void)
 {
        /*
         * Mapping is turned off; we must reference only physical addresses.
@@ -898,7 +898,7 @@ void pmap_virtual_space(
  *     Called by vm_init, to initialize any structures that the pmap
  *     system needs to map virtual memory.
  */
-void pmap_init()
+void pmap_init(void)
 {
        long                    npages;
        vm_offset_t             addr;
@@ -996,7 +996,7 @@ boolean_t pmap_verify_free(vm_offset_t phys)
  *     since these must be unlocked to use vm_page_grab.
  */
 vm_offset_t
-pmap_page_table_page_alloc()
+pmap_page_table_page_alloc(void)
 {
        vm_page_t       m;
        vm_offset_t     pa;
@@ -2783,7 +2783,7 @@ void pmap_update_interrupt(void)
 /*
  *     Dummy routine to satisfy external reference.
  */
-void pmap_update_interrupt()
+void pmap_update_interrupt(void)
 {
        /* should never be called. */
 }
@@ -2792,7 +2792,7 @@ void pmap_update_interrupt()
 #if defined(__i386__)
 /* Unmap page 0 to trap NULL references.  */
 void
-pmap_unmap_page_zero ()
+pmap_unmap_page_zero (void)
 {
   int *pte;
 
diff --git a/ipc/ipc_init.c b/ipc/ipc_init.c
index e6dc1a4..0df3a1f 100644
--- a/ipc/ipc_init.c
+++ b/ipc/ipc_init.c
@@ -106,7 +106,7 @@ ipc_bootstrap(void)
  */
 
 void
-ipc_init()
+ipc_init(void)
 {
        vm_offset_t min, max;
 
diff --git a/kern/act.c b/kern/act.c
index e831b07..f7808fa 100644
--- a/kern/act.c
+++ b/kern/act.c
@@ -64,7 +64,7 @@ static Act free_acts[ACT_STATIC_KLUDGE];
 Act null_act;
 
 void
-global_act_init()
+global_act_init(void)
 {
 #ifndef ACT_STATIC_KLUDGE
        kmem_cache_init(&act_cache, "Act", sizeof(struct Act), 0,
@@ -255,7 +255,7 @@ void act_detach(Act *cur_act)
    so RPC entry paths need not check it.
 
    Locking: Act */
-void act_execute_returnhandlers()
+void act_execute_returnhandlers(void)
 {
        Act *act = current_act();
 
@@ -1057,7 +1057,7 @@ act_set_state_immediate(
        return act_set_state(act, flavor, new_state, new_state_count);
 }
 
-void act_count()
+void act_count(void)
 {
        int i;
        Act *act;
diff --git a/kern/ast.c b/kern/ast.c
index b3f82bd..29647d3 100644
--- a/kern/ast.c
+++ b/kern/ast.c
@@ -55,7 +55,7 @@
 volatile ast_t need_ast[NCPUS];
 
 void
-ast_init()
+ast_init(void)
 {
 #ifndef        MACHINE_AST
        int i;
@@ -113,7 +113,7 @@ ast_taken(void)
 }
 
 void
-ast_check()
+ast_check(void)
 {
        int                     mycpu = cpu_number();
        processor_t             myprocessor;
diff --git a/kern/boot_script.c b/kern/boot_script.c
index 8b2165e..7ece4e7 100644
--- a/kern/boot_script.c
+++ b/kern/boot_script.c
@@ -484,7 +484,7 @@ boot_script_parse_line (void *hook, char *cmdline)
 
 /* Execute commands previously parsed.  */
 int
-boot_script_exec ()
+boot_script_exec (void)
 {
   int cmd_index;
 
diff --git a/kern/bootstrap.c b/kern/bootstrap.c
index 484094c..197d3a8 100644
--- a/kern/bootstrap.c
+++ b/kern/bootstrap.c
@@ -106,7 +106,7 @@ task_insert_send_right(
        return name;
 }
 
-void bootstrap_create()
+void bootstrap_create(void)
 {
   int compat;
   int n = 0;
@@ -638,7 +638,7 @@ build_args_and_stack(struct exec_info *boot_exec_info,
 }
 
 static void
-user_bootstrap_compat()
+user_bootstrap_compat(void)
 {
        exec_info_t boot_exec_info;
 
@@ -739,7 +739,7 @@ boot_script_exec_cmd (void *hook, task_t task, char *path, 
int argc,
   return 0;
 }
 
-static void user_bootstrap()
+static void user_bootstrap(void)
 {
   struct user_bootstrap_info *info = current_thread()->saved.other;
   exec_info_t boot_exec_info;
diff --git a/kern/exception.c b/kern/exception.c
index c09e5ac..7954fba 100644
--- a/kern/exception.c
+++ b/kern/exception.c
@@ -221,7 +221,7 @@ exception_try_task(
  */
 
 void
-exception_no_server()
+exception_no_server(void)
 {
        ipc_thread_t self = current_thread();
 
@@ -832,7 +832,7 @@ exception_parse_reply(ipc_kmsg_t kmsg)
  */
 
 void
-exception_raise_continue()
+exception_raise_continue(void)
 {
        ipc_thread_t self = current_thread();
        ipc_port_t reply_port = self->ith_port;
diff --git a/kern/mach_clock.c b/kern/mach_clock.c
index 699720c..5ff9c3b 100644
--- a/kern/mach_clock.c
+++ b/kern/mach_clock.c
@@ -270,7 +270,7 @@ void clock_interrupt(
  *     and corrupts it.
  */
 
-void softclock()
+void softclock(void)
 {
        /*
         *      Handle timeouts.
@@ -359,7 +359,7 @@ boolean_t reset_timeout(timer_elt_t telt)
        }
 }
 
-void init_timeout()
+void init_timeout(void)
 {
        simple_lock_init(&timer_lock);
        queue_init(&timer_head.chain);
@@ -489,7 +489,7 @@ host_adjust_time(
        return (KERN_SUCCESS);
 }
 
-void mapable_time_init()
+void mapable_time_init(void)
 {
        if (kmem_alloc_wired(kernel_map, (vm_offset_t *) &mtime, PAGE_SIZE)
                                                != KERN_SUCCESS)
@@ -498,11 +498,11 @@ void mapable_time_init()
        update_mapped_time(&time);
 }
 
-int timeopen()
+int timeopen(void)
 {
        return(0);
 }
-int timeclose()
+int timeclose(void)
 {
        return(0);
 }
diff --git a/kern/startup.c b/kern/startup.c
index 8443015..d0dc63e 100644
--- a/kern/startup.c
+++ b/kern/startup.c
@@ -86,7 +86,7 @@ extern char *kernel_cmdline;
  *
  *     Assumes that master_cpu is set.
  */
-void setup_main()
+void setup_main(void)
 {
        thread_t                startup_thread;
 
@@ -198,7 +198,7 @@ void setup_main()
  * Now running in a thread.  Create the rest of the kernel threads
  * and the bootstrap task.
  */
-void start_kernel_threads()
+void start_kernel_threads(void)
 {
        int     i;
 
@@ -266,7 +266,7 @@ void start_kernel_threads()
 }
 
 #if    NCPUS > 1
-void slave_main()
+void slave_main(void)
 {
        cpu_launch_first_thread(THREAD_NULL);
 }
diff --git a/kern/syscall_emulation.c b/kern/syscall_emulation.c
index 48041b2..792b0da 100644
--- a/kern/syscall_emulation.c
+++ b/kern/syscall_emulation.c
@@ -55,7 +55,7 @@
 /*
  *  eml_init:  initialize user space emulation code
  */
-void eml_init()
+void eml_init(void)
 {
 }
 
diff --git a/kern/syscall_sw.c b/kern/syscall_sw.c
index 9397441..0739f61 100644
--- a/kern/syscall_sw.c
+++ b/kern/syscall_sw.c
@@ -40,7 +40,6 @@
 #include <kern/eventcount.h>
 #include <ipc/mach_port.h>
 
-
 /*
  *     To add a new entry:
  *             Add an "MACH_TRAP(routine, arg count)" to the table below.
@@ -60,13 +59,13 @@
 
 int kern_invalid_debug = 0;
 
-mach_port_t    null_port()
+mach_port_t    null_port(void)
 {
        if (kern_invalid_debug) SoftDebugger("null_port mach trap");
        return(MACH_PORT_NULL);
 }
 
-kern_return_t  kern_invalid()
+kern_return_t  kern_invalid(void)
 {
        if (kern_invalid_debug) SoftDebugger("kern_invalid mach trap");
        return(KERN_INVALID_ARGUMENT);
diff --git a/kern/time_stamp.c b/kern/time_stamp.c
index a7e89ac..f0df0eb 100644
--- a/kern/time_stamp.c
+++ b/kern/time_stamp.c
@@ -65,7 +65,7 @@ kern_timestamp(struct tsval *tsp)
  *     Initialization procedure.
  */
 
-void timestamp_init()
+void timestamp_init(void)
 {
 #ifdef multimax
 #else  /* multimax */
diff --git a/kern/timer.c b/kern/timer.c
index dfc3424..1c9ea11 100644
--- a/kern/timer.c
+++ b/kern/timer.c
@@ -43,7 +43,7 @@ timer_data_t  kernel_timer[NCPUS];
  *     service routine on the callout queue.  All timers must be
  *     serviced by the callout routine once an hour.
  */
-void init_timers()
+void init_timers(void)
 {
        int     i;
        timer_t this_timer;
diff --git a/vm/vm_fault.c b/vm/vm_fault.c
index 467f517..60548b9 100644
--- a/vm/vm_fault.c
+++ b/vm/vm_fault.c
@@ -1127,7 +1127,7 @@ vm_fault_return_t vm_fault_page(
  */
 
 void
-vm_fault_continue()
+vm_fault_continue(void)
 {
        vm_fault_state_t *state =
                (vm_fault_state_t *) current_thread()->ith_other;
diff --git a/vm/vm_init.c b/vm/vm_init.c
index 89eb098..3d1081c 100644
--- a/vm/vm_init.c
+++ b/vm/vm_init.c
@@ -51,7 +51,7 @@
  *     This is done only by the first cpu up.
  */
 
-void vm_mem_bootstrap()
+void vm_mem_bootstrap(void)
 {
        vm_offset_t     start, end;
 
@@ -79,7 +79,7 @@ void vm_mem_bootstrap()
        memory_manager_default_init();
 }
 
-void vm_mem_init()
+void vm_mem_init(void)
 {
        vm_object_init();
        memory_object_proxy_init();
diff --git a/vm/vm_pageout.c b/vm/vm_pageout.c
index 01c0a6c..75d5009 100644
--- a/vm/vm_pageout.c
+++ b/vm/vm_pageout.c
@@ -505,7 +505,7 @@ vm_pageout_page(
  *     vm_page_free_wanted == 0.
  */
 
-void vm_pageout_scan()
+void vm_pageout_scan(void)
 {
        unsigned int burst_count;
        unsigned int want_pages;
@@ -851,7 +851,7 @@ void vm_pageout_scan()
        }
 }
 
-void vm_pageout_scan_continue()
+void vm_pageout_scan_continue(void)
 {
        /*
         *      We just paused to let the pagers catch up.
@@ -882,7 +882,7 @@ void vm_pageout_scan_continue()
  *     vm_pageout is the high level pageout daemon.
  */
 
-void vm_pageout_continue()
+void vm_pageout_continue(void)
 {
        /*
         *      The pageout daemon is never done, so loop forever.
@@ -904,7 +904,7 @@ void vm_pageout_continue()
        }
 }
 
-void vm_pageout()
+void vm_pageout(void)
 {
        int             free_after_reserve;
 
-- 
1.8.1.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]