mirror of
https://github.com/openbsd/src.git
synced 2025-01-09 22:38:01 -08:00
Sync no-argument function declaration and definition by adding (void).
ok mpi@ millert@
This commit is contained in:
parent
62df73d350
commit
c799dc6db0
sys
ddb
dev/pci
isofs/cd9660
kern
lib/libkern
net
netinet
netinet6
scsi
uvm
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: db_dwarf.c,v 1.3 2016/01/25 14:30:30 mpi Exp $ */
|
||||
/* $OpenBSD: db_dwarf.c,v 1.4 2016/03/07 18:43:59 naddy Exp $ */
|
||||
/*
|
||||
* Copyright (c) 2014 Matthew Dempsky <matthew@dempsky.org>
|
||||
*
|
||||
@ -414,7 +414,7 @@ next:
|
||||
#endif /* !ELFDATA */
|
||||
|
||||
static void
|
||||
usage()
|
||||
usage(void)
|
||||
{
|
||||
extern const char *__progname;
|
||||
errx(1, "usage: %s [-s] [-e filename] [addr addr ...]", __progname);
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: mpii.c,v 1.101 2015/03/18 12:23:25 mikeb Exp $ */
|
||||
/* $OpenBSD: mpii.c,v 1.102 2016/03/07 18:43:59 naddy Exp $ */
|
||||
/*
|
||||
* Copyright (c) 2010, 2012 Mike Belopuhov
|
||||
* Copyright (c) 2009 James Giannoules
|
||||
@ -2983,9 +2983,9 @@ mpii_scsi_cmd_done(struct mpii_ccb *ccb)
|
||||
|
||||
mpii_push_reply(sc, ccb->ccb_rcb);
|
||||
done:
|
||||
KERNEL_LOCK();
|
||||
KERNEL_LOCK();
|
||||
scsi_done(xs);
|
||||
KERNEL_UNLOCK();
|
||||
KERNEL_UNLOCK();
|
||||
}
|
||||
|
||||
int
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: cd9660_vfsops.c,v 1.72 2016/02/27 18:50:38 natano Exp $ */
|
||||
/* $OpenBSD: cd9660_vfsops.c,v 1.73 2016/03/07 18:43:59 naddy Exp $ */
|
||||
/* $NetBSD: cd9660_vfsops.c,v 1.26 1997/06/13 15:38:58 pk Exp $ */
|
||||
|
||||
/*-
|
||||
@ -86,7 +86,7 @@ int iso_disklabelspoof(dev_t dev, void (*strat)(struct buf *),
|
||||
struct disklabel *lp);
|
||||
|
||||
int
|
||||
cd9660_mountroot()
|
||||
cd9660_mountroot(void)
|
||||
{
|
||||
struct mount *mp;
|
||||
extern struct vnode *rootvp;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: kgdb_stub.c,v 1.9 2010/10/30 04:17:07 tedu Exp $ */
|
||||
/* $OpenBSD: kgdb_stub.c,v 1.10 2016/03/07 18:43:59 naddy Exp $ */
|
||||
/* $NetBSD: kgdb_stub.c,v 1.6 1998/08/30 20:30:57 scottr Exp $ */
|
||||
|
||||
/*
|
||||
@ -531,7 +531,7 @@ kgdb_connect(int verbose)
|
||||
* (This is called by panic, like Debugger())
|
||||
*/
|
||||
void
|
||||
kgdb_panic()
|
||||
kgdb_panic(void)
|
||||
{
|
||||
if (kgdb_dev >= 0 && kgdb_debug_panic) {
|
||||
printf("entering kgdb\n");
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: vfs_cache.c,v 1.47 2015/03/14 03:38:51 jsg Exp $ */
|
||||
/* $OpenBSD: vfs_cache.c,v 1.48 2016/03/07 18:43:59 naddy Exp $ */
|
||||
/* $NetBSD: vfs_cache.c,v 1.13 1996/02/04 02:18:09 christos Exp $ */
|
||||
|
||||
/*
|
||||
@ -413,7 +413,7 @@ done:
|
||||
* Name cache initialization, from vfs_init() when we are booting
|
||||
*/
|
||||
void
|
||||
nchinit()
|
||||
nchinit(void)
|
||||
{
|
||||
TAILQ_INIT(&nclruhead);
|
||||
TAILQ_INIT(&nclruneghead);
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: __main.c,v 1.3 2002/03/14 01:27:07 millert Exp $ */
|
||||
/* $OpenBSD: __main.c,v 1.4 2016/03/07 18:43:59 naddy Exp $ */
|
||||
/* $NetBSD: __main.c,v 1.4 1996/03/14 18:52:03 christos Exp $ */
|
||||
|
||||
/*
|
||||
@ -36,6 +36,6 @@
|
||||
void __main(void);
|
||||
|
||||
void
|
||||
__main()
|
||||
__main(void)
|
||||
{
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: __eabi.c,v 1.5 2012/12/05 23:20:22 deraadt Exp $ */
|
||||
/* $OpenBSD: __eabi.c,v 1.6 2016/03/07 18:44:00 naddy Exp $ */
|
||||
/* $NetBSD: __main.c,v 1.3 1994/10/26 06:42:13 cgd Exp $ */
|
||||
|
||||
/*
|
||||
@ -36,6 +36,6 @@
|
||||
void __eabi(void);
|
||||
|
||||
void
|
||||
__eabi()
|
||||
__eabi(void)
|
||||
{
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: if.c,v 1.427 2016/03/02 00:00:16 dlg Exp $ */
|
||||
/* $OpenBSD: if.c,v 1.428 2016/03/07 18:44:00 naddy Exp $ */
|
||||
/* $NetBSD: if.c,v 1.35 1996/05/07 05:26:04 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
@ -225,7 +225,7 @@ struct taskq *softnettq;
|
||||
* parameters.
|
||||
*/
|
||||
void
|
||||
ifinit()
|
||||
ifinit(void)
|
||||
{
|
||||
/*
|
||||
* most machines boot with 4 or 5 interfaces, so size the initial map
|
||||
@ -2555,7 +2555,7 @@ net_tick(void *null)
|
||||
}
|
||||
|
||||
int
|
||||
net_livelocked()
|
||||
net_livelocked(void)
|
||||
{
|
||||
extern int ticks;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: route.c,v 1.295 2016/02/26 07:54:39 deraadt Exp $ */
|
||||
/* $OpenBSD: route.c,v 1.296 2016/03/07 18:44:00 naddy Exp $ */
|
||||
/* $NetBSD: route.c,v 1.14 1996/02/13 22:00:46 christos Exp $ */
|
||||
|
||||
/*
|
||||
@ -1441,7 +1441,7 @@ static int rt_init_done = 0;
|
||||
*/
|
||||
|
||||
void
|
||||
rt_timer_init()
|
||||
rt_timer_init(void)
|
||||
{
|
||||
static struct timeout rt_timer_timeout;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: ip_ah.c,v 1.118 2015/07/15 22:16:42 deraadt Exp $ */
|
||||
/* $OpenBSD: ip_ah.c,v 1.119 2016/03/07 18:44:00 naddy Exp $ */
|
||||
/*
|
||||
* The authors of this code are John Ioannidis (ji@tla.org),
|
||||
* Angelos D. Keromytis (kermit@csd.uch.gr) and
|
||||
@ -89,7 +89,7 @@ unsigned char ipseczeroes[IPSEC_ZEROES_SIZE]; /* zeroes! */
|
||||
* ah_attach() is called from the transformation initialization code.
|
||||
*/
|
||||
int
|
||||
ah_attach()
|
||||
ah_attach(void)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: ip_divert.c,v 1.38 2015/09/09 20:15:52 dlg Exp $ */
|
||||
/* $OpenBSD: ip_divert.c,v 1.39 2016/03/07 18:44:00 naddy Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2009 Michele Marchetto <michele@openbsd.org>
|
||||
@ -67,7 +67,7 @@ void divert_detach(struct inpcb *);
|
||||
int divert_output(struct inpcb *, struct mbuf *, struct mbuf *,
|
||||
struct mbuf *);
|
||||
void
|
||||
divert_init()
|
||||
divert_init(void)
|
||||
{
|
||||
in_pcbinit(&divbtable, divbhashsize);
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: ip_esp.c,v 1.136 2015/12/09 21:41:50 naddy Exp $ */
|
||||
/* $OpenBSD: ip_esp.c,v 1.137 2016/03/07 18:44:00 naddy Exp $ */
|
||||
/*
|
||||
* The authors of this code are John Ioannidis (ji@tla.org),
|
||||
* Angelos D. Keromytis (kermit@csd.uch.gr) and
|
||||
@ -84,7 +84,7 @@ struct espstat espstat;
|
||||
* esp_attach() is called from the transformation initialization code.
|
||||
*/
|
||||
int
|
||||
esp_attach()
|
||||
esp_attach(void)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: ip_ipip.c,v 1.68 2016/01/22 11:14:58 jsg Exp $ */
|
||||
/* $OpenBSD: ip_ipip.c,v 1.69 2016/03/07 18:44:00 naddy Exp $ */
|
||||
/*
|
||||
* The authors of this code are John Ioannidis (ji@tla.org),
|
||||
* Angelos D. Keromytis (kermit@csd.uch.gr) and
|
||||
@ -592,7 +592,7 @@ ipip_output(struct mbuf *m, struct tdb *tdb, struct mbuf **mp, int dummy,
|
||||
|
||||
#ifdef IPSEC
|
||||
int
|
||||
ipe4_attach()
|
||||
ipe4_attach(void)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: ip_mroute.c,v 1.89 2015/11/14 15:54:27 mpi Exp $ */
|
||||
/* $OpenBSD: ip_mroute.c,v 1.90 2016/03/07 18:44:00 naddy Exp $ */
|
||||
/* $NetBSD: ip_mroute.c,v 1.85 2004/04/26 01:31:57 matt Exp $ */
|
||||
|
||||
/*
|
||||
@ -572,7 +572,7 @@ _mfchash(struct in_addr o, struct in_addr g)
|
||||
* Disable multicast routing
|
||||
*/
|
||||
int
|
||||
ip_mrouter_done()
|
||||
ip_mrouter_done(void)
|
||||
{
|
||||
vifi_t vifi;
|
||||
struct vif *vifp;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: raw_ip.c,v 1.85 2015/12/03 14:55:18 vgross Exp $ */
|
||||
/* $OpenBSD: raw_ip.c,v 1.86 2016/03/07 18:44:00 naddy Exp $ */
|
||||
/* $NetBSD: raw_ip.c,v 1.25 1996/02/18 18:58:33 christos Exp $ */
|
||||
|
||||
/*
|
||||
@ -107,7 +107,7 @@ struct inpcbtable rawcbtable;
|
||||
* Initialize raw connection block q.
|
||||
*/
|
||||
void
|
||||
rip_init()
|
||||
rip_init(void)
|
||||
{
|
||||
|
||||
in_pcbinit(&rawcbtable, 1);
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: tcp_input.c,v 1.313 2016/01/22 11:10:17 jsg Exp $ */
|
||||
/* $OpenBSD: tcp_input.c,v 1.314 2016/03/07 18:44:00 naddy Exp $ */
|
||||
/* $NetBSD: tcp_input.c,v 1.23 1996/02/13 23:43:44 christos Exp $ */
|
||||
|
||||
/*
|
||||
@ -3346,7 +3346,7 @@ do { \
|
||||
#define SYN_CACHE_TIMESTAMP(sc) tcp_now + (sc)->sc_modulate
|
||||
|
||||
void
|
||||
syn_cache_init()
|
||||
syn_cache_init(void)
|
||||
{
|
||||
int i;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: tcp_subr.c,v 1.150 2015/10/24 16:08:48 mpi Exp $ */
|
||||
/* $OpenBSD: tcp_subr.c,v 1.151 2016/03/07 18:44:00 naddy Exp $ */
|
||||
/* $NetBSD: tcp_subr.c,v 1.22 1996/02/13 23:44:00 christos Exp $ */
|
||||
|
||||
/*
|
||||
@ -138,7 +138,7 @@ tcp_seq tcp_iss;
|
||||
* Tcp initialization
|
||||
*/
|
||||
void
|
||||
tcp_init()
|
||||
tcp_init(void)
|
||||
{
|
||||
tcp_iss = 1; /* wrong */
|
||||
pool_init(&tcpcb_pool, sizeof(struct tcpcb), 0, 0, 0, "tcpcb", NULL);
|
||||
@ -980,7 +980,7 @@ tcp_set_iss_tsm(struct tcpcb *tp)
|
||||
|
||||
#ifdef TCP_SIGNATURE
|
||||
int
|
||||
tcp_signature_tdb_attach()
|
||||
tcp_signature_tdb_attach(void)
|
||||
{
|
||||
return (0);
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: tcp_timer.c,v 1.48 2014/07/22 11:06:10 mpi Exp $ */
|
||||
/* $OpenBSD: tcp_timer.c,v 1.49 2016/03/07 18:44:00 naddy Exp $ */
|
||||
/* $NetBSD: tcp_timer.c,v 1.14 1996/02/13 23:44:09 christos Exp $ */
|
||||
|
||||
/*
|
||||
@ -129,7 +129,7 @@ tcp_delack(void *arg)
|
||||
* causes finite state machine actions if timers expire.
|
||||
*/
|
||||
void
|
||||
tcp_slowtimo()
|
||||
tcp_slowtimo(void)
|
||||
{
|
||||
int s;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: udp_usrreq.c,v 1.208 2015/12/03 14:05:28 bluhm Exp $ */
|
||||
/* $OpenBSD: udp_usrreq.c,v 1.209 2016/03/07 18:44:00 naddy Exp $ */
|
||||
/* $NetBSD: udp_usrreq.c,v 1.28 1996/03/16 23:54:03 christos Exp $ */
|
||||
|
||||
/*
|
||||
@ -140,7 +140,7 @@ void udp_notify(struct inpcb *, int);
|
||||
#endif
|
||||
|
||||
void
|
||||
udp_init()
|
||||
udp_init(void)
|
||||
{
|
||||
in_pcbinit(&udbtable, UDB_INITIAL_HASH_SIZE);
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: frag6.c,v 1.66 2015/12/03 13:13:04 tedu Exp $ */
|
||||
/* $OpenBSD: frag6.c,v 1.67 2016/03/07 18:44:00 naddy Exp $ */
|
||||
/* $KAME: frag6.c,v 1.40 2002/05/27 21:40:31 itojun Exp $ */
|
||||
|
||||
/*
|
||||
@ -64,7 +64,7 @@ static __inline int ip6q_lock_try(void);
|
||||
static __inline void ip6q_unlock(void);
|
||||
|
||||
static __inline int
|
||||
ip6q_lock_try()
|
||||
ip6q_lock_try(void)
|
||||
{
|
||||
int s;
|
||||
|
||||
@ -80,7 +80,7 @@ ip6q_lock_try()
|
||||
}
|
||||
|
||||
static __inline void
|
||||
ip6q_unlock()
|
||||
ip6q_unlock(void)
|
||||
{
|
||||
int s;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: ip6_divert.c,v 1.38 2015/09/11 08:17:06 claudio Exp $ */
|
||||
/* $OpenBSD: ip6_divert.c,v 1.39 2016/03/07 18:44:00 naddy Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2009 Michele Marchetto <michele@openbsd.org>
|
||||
@ -69,7 +69,7 @@ int divert6_output(struct inpcb *, struct mbuf *, struct mbuf *,
|
||||
struct mbuf *);
|
||||
|
||||
void
|
||||
divert6_init()
|
||||
divert6_init(void)
|
||||
{
|
||||
in_pcbinit(&divb6table, divb6hashsize);
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: mld6.c,v 1.46 2015/09/12 13:34:12 mpi Exp $ */
|
||||
/* $OpenBSD: mld6.c,v 1.47 2016/03/07 18:44:00 naddy Exp $ */
|
||||
/* $KAME: mld6.c,v 1.26 2001/02/16 14:50:35 itojun Exp $ */
|
||||
|
||||
/*
|
||||
@ -93,7 +93,7 @@ void mld6_checktimer(struct ifnet *);
|
||||
static void mld6_sendpkt(struct in6_multi *, int, const struct in6_addr *);
|
||||
|
||||
void
|
||||
mld6_init()
|
||||
mld6_init(void)
|
||||
{
|
||||
static u_int8_t hbh_buf[8];
|
||||
struct ip6_hbh *hbh = (struct ip6_hbh *)hbh_buf;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: raw_ip6.c,v 1.87 2015/11/24 13:37:16 mpi Exp $ */
|
||||
/* $OpenBSD: raw_ip6.c,v 1.88 2016/03/07 18:44:00 naddy Exp $ */
|
||||
/* $KAME: raw_ip6.c,v 1.69 2001/03/04 15:55:44 itojun Exp $ */
|
||||
|
||||
/*
|
||||
@ -109,7 +109,7 @@ struct rip6stat rip6stat;
|
||||
* Initialize raw connection block queue.
|
||||
*/
|
||||
void
|
||||
rip6_init()
|
||||
rip6_init(void)
|
||||
{
|
||||
|
||||
in_pcbinit(&rawin6pcbtable, 1);
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: scsi_base.c,v 1.221 2015/06/07 19:13:27 krw Exp $ */
|
||||
/* $OpenBSD: scsi_base.c,v 1.222 2016/03/07 18:44:00 naddy Exp $ */
|
||||
/* $NetBSD: scsi_base.c,v 1.43 1997/04/02 02:29:36 mycroft Exp $ */
|
||||
|
||||
/*
|
||||
@ -112,7 +112,7 @@ void scsi_xs_get_done(void *, void *);
|
||||
* Called when a scsibus is attached to initialize global data.
|
||||
*/
|
||||
void
|
||||
scsi_init()
|
||||
scsi_init(void)
|
||||
{
|
||||
static int scsi_init_done;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: uvm_addr.c,v 1.14 2015/07/17 21:56:14 kettenis Exp $ */
|
||||
/* $OpenBSD: uvm_addr.c,v 1.15 2016/03/07 18:44:00 naddy Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2011 Ariane van der Steldt <ariane@stack.nl>
|
||||
@ -1019,7 +1019,7 @@ const struct uvm_addr_functions uaddr_pivot_functions = {
|
||||
* The random function has a slightly higher change to return a small number.
|
||||
*/
|
||||
vsize_t
|
||||
uaddr_pivot_random()
|
||||
uaddr_pivot_random(void)
|
||||
{
|
||||
int r;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: uvm_fault.c,v 1.87 2015/11/10 08:21:28 mlarkin Exp $ */
|
||||
/* $OpenBSD: uvm_fault.c,v 1.88 2016/03/07 18:44:00 naddy Exp $ */
|
||||
/* $NetBSD: uvm_fault.c,v 1.51 2000/08/06 00:22:53 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
@ -198,7 +198,7 @@ uvmfault_anonflush(struct vm_anon **anons, int n)
|
||||
* uvmfault_init: compute proper values for the uvmadvice[] array.
|
||||
*/
|
||||
void
|
||||
uvmfault_init()
|
||||
uvmfault_init(void)
|
||||
{
|
||||
int npages;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user