diff options
author | Joel Sing <jsing@cvs.openbsd.org> | 2011-09-22 21:51:25 +0000 |
---|---|---|
committer | Joel Sing <jsing@cvs.openbsd.org> | 2011-09-22 21:51:25 +0000 |
commit | 9c66678aaa3a800a674931d05f16201228ece3f5 (patch) | |
tree | e2f47c451958274070309aec306ea2419ce322e4 /sys | |
parent | 156149c8505ef0c1b64ae0262f6be6c78ae13287 (diff) |
Ansify functions definitions.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/hppa64/hppa64/autoconf.c | 8 | ||||
-rw-r--r-- | sys/arch/hppa64/hppa64/conf.c | 10 | ||||
-rw-r--r-- | sys/arch/hppa64/hppa64/db_interface.c | 32 |
3 files changed, 16 insertions, 34 deletions
diff --git a/sys/arch/hppa64/hppa64/autoconf.c b/sys/arch/hppa64/hppa64/autoconf.c index 8d5bb8de1bd..229e7078d6d 100644 --- a/sys/arch/hppa64/hppa64/autoconf.c +++ b/sys/arch/hppa64/hppa64/autoconf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: autoconf.c,v 1.15 2011/09/22 13:50:30 deraadt Exp $ */ +/* $OpenBSD: autoconf.c,v 1.16 2011/09/22 21:51:24 jsing Exp $ */ /* * Copyright (c) 1998-2005 Michael Shalayeff @@ -137,8 +137,7 @@ diskconf(void) * to ponder in even more. */ void -heartbeat(v) - void *v; +heartbeat(void *v) { static u_int hbcnt = 0, ocp_total, ocp_idle; int toggle, cp_mask, cp_total, cp_idle; @@ -401,8 +400,7 @@ const struct hppa_mod_info hppa_knownmods[] = { }; const char * -hppa_mod_info(type, sv) - int type, sv; +hppa_mod_info(int type, int sv) { const struct hppa_mod_info *mi; static char fakeid[32]; diff --git a/sys/arch/hppa64/hppa64/conf.c b/sys/arch/hppa64/hppa64/conf.c index 9cc67d9c4bb..9b232b27392 100644 --- a/sys/arch/hppa64/hppa64/conf.c +++ b/sys/arch/hppa64/hppa64/conf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: conf.c,v 1.19 2011/09/22 13:50:30 deraadt Exp $ */ +/* $OpenBSD: conf.c,v 1.20 2011/09/22 21:51:24 jsing Exp $ */ /*- * Copyright (c) 1991 The Regents of the University of California. @@ -261,14 +261,13 @@ int nchrtoblktbl = nitems(chrtoblktbl); * Returns true if dev is /dev/zero. */ int -iszerodev(dev) - dev_t dev; +iszerodev(dev_t dev) { return (major(dev) == mem_no && minor(dev) == 12); } dev_t -getnulldev() +getnulldev(void) { return makedev(mem_no, 2); } @@ -277,8 +276,7 @@ getnulldev() * Returns true if dev is /dev/mem or /dev/kmem. */ int -iskmemdev(dev) - dev_t dev; +iskmemdev(dev_t dev) { return (major(dev) == mem_no && minor(dev) < 2); } diff --git a/sys/arch/hppa64/hppa64/db_interface.c b/sys/arch/hppa64/hppa64/db_interface.c index 8467caa93db..022f7aaf04a 100644 --- a/sys/arch/hppa64/hppa64/db_interface.c +++ b/sys/arch/hppa64/hppa64/db_interface.c @@ -1,4 +1,4 @@ -/* $OpenBSD: db_interface.c,v 1.1 2005/04/01 10:40:47 mickey Exp $ */ +/* $OpenBSD: db_interface.c,v 1.2 2011/09/22 21:51:24 jsing Exp $ */ /* * Copyright (c) 2005 Michael Shalayeff @@ -111,17 +111,14 @@ struct db_variable *db_eregs = db_regs + sizeof(db_regs)/sizeof(db_regs[0]); int db_active = 0; void -Debugger() +Debugger(void) { __asm __volatile ("break %0, %1" :: "i" (HPPA_BREAK_KERNEL), "i" (HPPA_BREAK_KGDB)); } void -db_read_bytes(addr, size, data) - vaddr_t addr; - size_t size; - char *data; +db_read_bytes(vaddr_t addr, size_t size, char *data) { register char *src = (char *)addr; @@ -130,10 +127,7 @@ db_read_bytes(addr, size, data) } void -db_write_bytes(addr, size, data) - vaddr_t addr; - size_t size; - char *data; +db_write_bytes(vaddr_t addr, size_t size, char *data) { register char *dst = (char *)addr; @@ -150,8 +144,7 @@ db_write_bytes(addr, size, data) * Print trap reason. */ void -kdbprinttrap(type, code) - int type, code; +kdbprinttrap(int type, int code) { type &= ~T_USER; /* just in case */ db_printf("kernel: "); @@ -166,9 +159,7 @@ kdbprinttrap(type, code) * kdb_trap - field a BPT trap */ int -kdb_trap(type, code, regs) - int type, code; - db_regs_t *regs; +kdb_trap(int type, int code, db_regs_t *regs) { extern label_t *db_recover; int s; @@ -209,19 +200,14 @@ kdb_trap(type, code, regs) * Any address is allowed for now. */ int -db_valid_breakpoint(addr) - db_addr_t addr; +db_valid_breakpoint(db_addr_t addr) { return (1); } void -db_stack_trace_print(addr, have_addr, count, modif, pr) - db_expr_t addr; - int have_addr; - db_expr_t count; - char *modif; - int (*pr)(const char *, ...); +db_stack_trace_print(db_expr_t addr, int have_addr, db_expr_t count, + char *modif, int (*pr)(const char *, ...)) { register_t *fp, pc, rp, *argp; db_sym_t sym; |