diff options
author | 2016-03-07 13:21:51 +0000 | |
---|---|---|
committer | 2016-03-07 13:21:51 +0000 | |
commit | 0aac50012ebe3feed7cb71903f34aca5eded8abc (patch) | |
tree | c88849ee0cb892960f283a5107499eca867b77b4 | |
parent | - General changes: (diff) | |
download | wireguard-openbsd-0aac50012ebe3feed7cb71903f34aca5eded8abc.tar.xz wireguard-openbsd-0aac50012ebe3feed7cb71903f34aca5eded8abc.zip |
Sync no-argument function declaration and definition by adding (void).
ok mpi@
-rw-r--r-- | sys/arch/sparc64/dev/consinit.c | 4 | ||||
-rw-r--r-- | sys/arch/sparc64/dev/fb.c | 4 | ||||
-rw-r--r-- | sys/arch/sparc64/dev/pcons.c | 4 | ||||
-rw-r--r-- | sys/arch/sparc64/dev/tda.c | 4 | ||||
-rw-r--r-- | sys/arch/sparc64/include/ctlreg.h | 4 | ||||
-rw-r--r-- | sys/arch/sparc64/include/db_machdep.h | 3 | ||||
-rw-r--r-- | sys/arch/sparc64/include/psl.h | 10 | ||||
-rw-r--r-- | sys/arch/sparc64/sparc64/autoconf.c | 12 | ||||
-rw-r--r-- | sys/arch/sparc64/sparc64/cache.c | 4 | ||||
-rw-r--r-- | sys/arch/sparc64/sparc64/clock.c | 6 | ||||
-rw-r--r-- | sys/arch/sparc64/sparc64/db_interface.c | 6 | ||||
-rw-r--r-- | sys/arch/sparc64/sparc64/machdep.c | 8 | ||||
-rw-r--r-- | sys/arch/sparc64/sparc64/ofw_machdep.c | 10 | ||||
-rw-r--r-- | sys/arch/sparc64/sparc64/openfirm.c | 10 | ||||
-rw-r--r-- | sys/arch/sparc64/stand/ofwboot/boot.c | 4 |
15 files changed, 46 insertions, 47 deletions
diff --git a/sys/arch/sparc64/dev/consinit.c b/sys/arch/sparc64/dev/consinit.c index f9d583286c3..89d7c6878dc 100644 --- a/sys/arch/sparc64/dev/consinit.c +++ b/sys/arch/sparc64/dev/consinit.c @@ -1,4 +1,4 @@ -/* $OpenBSD: consinit.c,v 1.14 2011/04/13 00:56:25 deraadt Exp $ */ +/* $OpenBSD: consinit.c,v 1.15 2016/03/07 13:21:51 naddy Exp $ */ /* $NetBSD: consinit.c,v 1.9 2000/10/20 05:32:35 mrg Exp $ */ /*- @@ -174,7 +174,7 @@ prom_cnpollc(dev_t dev, int on) * the PROM "input source" and "output sink". */ void -consinit() +consinit(void) { register int chosen; char buffer[128]; diff --git a/sys/arch/sparc64/dev/fb.c b/sys/arch/sparc64/dev/fb.c index 7475798c4cc..a0030c4dee6 100644 --- a/sys/arch/sparc64/dev/fb.c +++ b/sys/arch/sparc64/dev/fb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fb.c,v 1.25 2013/10/21 10:36:19 miod Exp $ */ +/* $OpenBSD: fb.c,v 1.26 2016/03/07 13:21:51 naddy Exp $ */ /* $NetBSD: fb.c,v 1.23 1997/07/07 23:30:22 pk Exp $ */ /* @@ -104,7 +104,7 @@ void (*fb_burner)(void *, u_int, u_int); void *fb_cookie; void -fb_unblank() +fb_unblank(void) { if (fb_burner != NULL) (*fb_burner)(fb_cookie, 1, 0); diff --git a/sys/arch/sparc64/dev/pcons.c b/sys/arch/sparc64/dev/pcons.c index 211e4b6063f..b447fc33d2d 100644 --- a/sys/arch/sparc64/dev/pcons.c +++ b/sys/arch/sparc64/dev/pcons.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pcons.c,v 1.20 2013/10/20 20:07:27 miod Exp $ */ +/* $OpenBSD: pcons.c,v 1.21 2016/03/07 13:21:51 naddy Exp $ */ /* $NetBSD: pcons.c,v 1.7 2001/05/02 10:32:20 scw Exp $ */ /*- @@ -394,7 +394,7 @@ pcons_poll(aux) } int -pconsprobe() +pconsprobe(void) { if (!stdin) stdin = OF_stdin(); if (!stdout) stdout = OF_stdout(); diff --git a/sys/arch/sparc64/dev/tda.c b/sys/arch/sparc64/dev/tda.c index e95bad8c613..416566409d6 100644 --- a/sys/arch/sparc64/dev/tda.c +++ b/sys/arch/sparc64/dev/tda.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tda.c,v 1.7 2010/08/27 18:58:57 robert Exp $ */ +/* $OpenBSD: tda.c,v 1.8 2016/03/07 13:21:51 naddy Exp $ */ /* * Copyright (c) 2008 Robert Nagy <robert@openbsd.org> @@ -234,7 +234,7 @@ out: * timeouts are not working. */ void -tda_full_blast() +tda_full_blast(void) { struct tda_softc *sc = tda_cookie; u_int8_t cmd[2]; diff --git a/sys/arch/sparc64/include/ctlreg.h b/sys/arch/sparc64/include/ctlreg.h index 8918341d91f..d794e56aae0 100644 --- a/sys/arch/sparc64/include/ctlreg.h +++ b/sys/arch/sparc64/include/ctlreg.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ctlreg.h,v 1.26 2014/03/29 18:09:30 guenther Exp $ */ +/* $OpenBSD: ctlreg.h,v 1.27 2016/03/07 13:21:51 naddy Exp $ */ /* $NetBSD: ctlreg.h,v 1.28 2001/08/06 23:55:34 eeh Exp $ */ /* @@ -718,7 +718,7 @@ void asi_set(int asi) extern __inline u_int8_t asi_get(void); extern __inline -u_int8_t asi_get() +u_int8_t asi_get(void) { return sparc_rd(asi); } diff --git a/sys/arch/sparc64/include/db_machdep.h b/sys/arch/sparc64/include/db_machdep.h index 96398636d09..fff62e8ddcc 100644 --- a/sys/arch/sparc64/include/db_machdep.h +++ b/sys/arch/sparc64/include/db_machdep.h @@ -1,4 +1,4 @@ -/* $OpenBSD: db_machdep.h,v 1.16 2016/02/27 13:08:07 mpi Exp $ */ +/* $OpenBSD: db_machdep.h,v 1.17 2016/03/07 13:21:51 naddy Exp $ */ /* $NetBSD: db_machdep.h,v 1.12 2001/07/07 15:16:13 eeh Exp $ */ /* @@ -114,7 +114,6 @@ boolean_t db_inst_call(int inst); boolean_t db_inst_branch(int inst); boolean_t db_inst_unconditional_flow_transfer(int inst); db_addr_t db_branch_taken(int inst, db_addr_t pc, db_regs_t *regs); -void db_machine_init(void); #define inst_trap_return(ins) db_inst_trap_return(ins) #define inst_return(ins) db_inst_return(ins) diff --git a/sys/arch/sparc64/include/psl.h b/sys/arch/sparc64/include/psl.h index d3fb5e8f6d4..87c9fab80dc 100644 --- a/sys/arch/sparc64/include/psl.h +++ b/sys/arch/sparc64/include/psl.h @@ -1,4 +1,4 @@ -/* $OpenBSD: psl.h,v 1.28 2014/03/29 18:09:30 guenther Exp $ */ +/* $OpenBSD: psl.h,v 1.29 2016/03/07 13:21:51 naddy Exp $ */ /* $NetBSD: psl.h,v 1.20 2001/04/13 23:30:05 thorpej Exp $ */ /* @@ -259,7 +259,7 @@ void splassert_check(int, const char *); */ extern __inline u_int64_t getpstate(void); extern __inline -u_int64_t getpstate() +u_int64_t getpstate(void) { return (sparc_rdpr(pstate)); } @@ -272,7 +272,7 @@ extern __inline void setpstate(u_int64_t newpstate) extern __inline int getcwp(void); extern __inline -int getcwp() +int getcwp(void) { return (sparc_rdpr(cwp)); } @@ -286,14 +286,14 @@ setcwp(u_int64_t newcwp) extern __inline u_int64_t getver(void); extern __inline -u_int64_t getver() +u_int64_t getver(void) { return (sparc_rdpr(ver)); } extern __inline u_int64_t intr_disable(void); extern __inline u_int64_t -intr_disable() +intr_disable(void) { u_int64_t s; diff --git a/sys/arch/sparc64/sparc64/autoconf.c b/sys/arch/sparc64/sparc64/autoconf.c index 43ae1518e04..6a5087a9c88 100644 --- a/sys/arch/sparc64/sparc64/autoconf.c +++ b/sys/arch/sparc64/sparc64/autoconf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: autoconf.c,v 1.124 2015/09/19 21:07:04 semarie Exp $ */ +/* $OpenBSD: autoconf.c,v 1.125 2016/03/07 13:21:51 naddy Exp $ */ /* $NetBSD: autoconf.c,v 1.51 2001/07/24 19:32:11 eeh Exp $ */ /* @@ -484,7 +484,7 @@ bootpath_nodes(struct bootpath *bp, int nbp) */ static void -bootpath_build() +bootpath_build(void) { register char *cp, *pp; register struct bootpath *bp; @@ -645,7 +645,7 @@ bootpath_store(int storep, struct bootpath *bp) * command. */ void -cpu_configure() +cpu_configure(void) { #ifdef SUN4V int pause = 0; @@ -797,7 +797,7 @@ diskconf(void) * no one really wants anything fancy... */ void -sync_crash() +sync_crash(void) { panic("PROM sync command"); @@ -837,7 +837,7 @@ mbprint(void *aux, const char *name) } int -findroot() +findroot(void) { int node; @@ -1288,7 +1288,7 @@ romgetcursoraddr(int **rowp, int **colp) } void -callrom() +callrom(void) { __asm volatile("wrpr %%g0, 0, %%tl" : ); diff --git a/sys/arch/sparc64/sparc64/cache.c b/sys/arch/sparc64/sparc64/cache.c index 4a19e10c028..faaadd56547 100644 --- a/sys/arch/sparc64/sparc64/cache.c +++ b/sys/arch/sparc64/sparc64/cache.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cache.c,v 1.3 2003/02/17 01:29:20 henric Exp $ */ +/* $OpenBSD: cache.c,v 1.4 2016/03/07 13:21:51 naddy Exp $ */ /* $NetBSD: cache.c,v 1.5 2000/12/06 01:47:50 mrg Exp $ */ /* @@ -78,7 +78,7 @@ int cachedebug = 0; * The prom does this for us. */ void -cache_enable() +cache_enable(void) { /* * No point in implementing this unless we have a cache_disable(). diff --git a/sys/arch/sparc64/sparc64/clock.c b/sys/arch/sparc64/sparc64/clock.c index f15cd6f8ccb..e33aa021f2f 100644 --- a/sys/arch/sparc64/sparc64/clock.c +++ b/sys/arch/sparc64/sparc64/clock.c @@ -1,4 +1,4 @@ -/* $OpenBSD: clock.c,v 1.57 2015/06/13 07:16:37 jsg Exp $ */ +/* $OpenBSD: clock.c,v 1.58 2016/03/07 13:21:51 naddy Exp $ */ /* $NetBSD: clock.c,v 1.41 2001/07/24 19:29:25 eeh Exp $ */ /* @@ -433,7 +433,7 @@ clockattach(node, bt, bh) } struct idprom * -getidprom() +getidprom(void) { struct idprom *idp = NULL; int node, n; @@ -964,7 +964,7 @@ inittodr(time_t base) * when crashing during autoconfig. */ void -resettodr() +resettodr(void) { struct timeval tv; diff --git a/sys/arch/sparc64/sparc64/db_interface.c b/sys/arch/sparc64/sparc64/db_interface.c index 2ff4a2a9632..e363547d519 100644 --- a/sys/arch/sparc64/sparc64/db_interface.c +++ b/sys/arch/sparc64/sparc64/db_interface.c @@ -1,4 +1,4 @@ -/* $OpenBSD: db_interface.c,v 1.40 2016/02/27 13:08:07 mpi Exp $ */ +/* $OpenBSD: db_interface.c,v 1.41 2016/03/07 13:21:51 naddy Exp $ */ /* $NetBSD: db_interface.c,v 1.61 2001/07/31 06:55:47 eeh Exp $ */ /* @@ -590,7 +590,7 @@ db_write_bytes(addr, size, data) } void -Debugger() +Debugger(void) { /* We use the breakpoint to trap into DDB */ asm("ta 1; nop"); @@ -1466,7 +1466,7 @@ db_inst_trap_return(inst) } void -db_machine_init() +db_machine_init(void) { db_machine_commands_install(db_machine_command_table); } diff --git a/sys/arch/sparc64/sparc64/machdep.c b/sys/arch/sparc64/sparc64/machdep.c index 49fc4b8275e..af20f427e13 100644 --- a/sys/arch/sparc64/sparc64/machdep.c +++ b/sys/arch/sparc64/sparc64/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.174 2015/10/21 07:59:18 mpi Exp $ */ +/* $OpenBSD: machdep.c,v 1.175 2016/03/07 13:21:51 naddy Exp $ */ /* $NetBSD: machdep.c,v 1.108 2001/07/24 19:30:14 eeh Exp $ */ /*- @@ -203,7 +203,7 @@ void stackdump(void); * Machine-dependent startup code */ void -cpu_startup() +cpu_startup(void) { #ifdef DEBUG extern int pmapdebug; @@ -752,7 +752,7 @@ reserve_dumppages(p) * Write a crash dump. */ void -dumpsys() +dumpsys(void) { int psize; daddr_t blkno; @@ -895,7 +895,7 @@ trapdump(tf) * current stack page */ void -stackdump() +stackdump(void) { struct frame32 *fp = (struct frame32 *)getfp(), *sfp; struct frame64 *fp64; diff --git a/sys/arch/sparc64/sparc64/ofw_machdep.c b/sys/arch/sparc64/sparc64/ofw_machdep.c index 9f5c35b835a..e0bd1913dff 100644 --- a/sys/arch/sparc64/sparc64/ofw_machdep.c +++ b/sys/arch/sparc64/sparc64/ofw_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ofw_machdep.c,v 1.32 2014/10/17 03:04:30 daniel Exp $ */ +/* $OpenBSD: ofw_machdep.c,v 1.33 2016/03/07 13:21:51 naddy Exp $ */ /* $NetBSD: ofw_machdep.c,v 1.16 2001/07/20 00:07:14 eeh Exp $ */ /* @@ -69,7 +69,7 @@ static u_int get_mmu_handle(void); static u_int get_memory_handle(void); static u_int -get_mmu_handle() +get_mmu_handle(void) { u_int chosen; @@ -85,7 +85,7 @@ get_mmu_handle() } static u_int -get_memory_handle() +get_memory_handle(void) { u_int chosen; @@ -678,7 +678,7 @@ static u_int stdin = 0; static u_int stdout = 0; int -OF_stdin() +OF_stdin(void) { u_int chosen; @@ -691,7 +691,7 @@ OF_stdin() } int -OF_stdout() +OF_stdout(void) { u_int chosen; diff --git a/sys/arch/sparc64/sparc64/openfirm.c b/sys/arch/sparc64/sparc64/openfirm.c index 9140beccef4..bdc1c4dc418 100644 --- a/sys/arch/sparc64/sparc64/openfirm.c +++ b/sys/arch/sparc64/sparc64/openfirm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: openfirm.c,v 1.16 2016/03/01 11:56:00 mpi Exp $ */ +/* $OpenBSD: openfirm.c,v 1.17 2016/03/07 13:21:51 naddy Exp $ */ /* $NetBSD: openfirm.c,v 1.13 2001/06/21 00:08:02 eeh Exp $ */ /* @@ -611,7 +611,7 @@ OF_boot(bootspec) } void -OF_enter() +OF_enter(void) { struct { cell_t name; @@ -626,7 +626,7 @@ OF_enter() } void -OF_exit() +OF_exit(void) { struct { cell_t name; @@ -642,7 +642,7 @@ OF_exit() } void -OF_poweroff() +OF_poweroff(void) { struct { cell_t name; @@ -731,7 +731,7 @@ OF_interpret(char *cmd, int nreturns, ...) } int -OF_milliseconds() +OF_milliseconds(void) { struct { cell_t name; diff --git a/sys/arch/sparc64/stand/ofwboot/boot.c b/sys/arch/sparc64/stand/ofwboot/boot.c index 198dab9deff..e4b95fb0309 100644 --- a/sys/arch/sparc64/stand/ofwboot/boot.c +++ b/sys/arch/sparc64/stand/ofwboot/boot.c @@ -1,4 +1,4 @@ -/* $OpenBSD: boot.c,v 1.24 2015/11/16 19:33:52 miod Exp $ */ +/* $OpenBSD: boot.c,v 1.25 2016/03/07 13:21:51 naddy Exp $ */ /* $NetBSD: boot.c,v 1.3 2001/05/31 08:55:19 mrg Exp $ */ /* * Copyright (c) 1997, 1999 Eduardo E. Horvath. All rights reserved. @@ -343,7 +343,7 @@ srbootdev(const char *bootline) #endif int -main() +main(void) { extern char version[]; int chosen; |