diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2016-07-31 09:18:02 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2016-07-31 09:18:02 +0000 |
commit | f11ea80cb94176f18e65f985116357a718029776 (patch) | |
tree | 29a4f44f9724351295d1f71f65a7701b07f14886 /sys/arch/arm | |
parent | ad1d6df902a5288c75dbab04dc21af461179e4af (diff) |
Use ansi style function declarations. No binary change.
From Robert Tate.
Diffstat (limited to 'sys/arch/arm')
-rw-r--r-- | sys/arch/arm/arm/conf.c | 10 | ||||
-rw-r--r-- | sys/arch/arm/arm/vm_machdep.c | 19 |
2 files changed, 9 insertions, 20 deletions
diff --git a/sys/arch/arm/arm/conf.c b/sys/arch/arm/arm/conf.c index 3d82f23cfb4..db2eb8a8f38 100644 --- a/sys/arch/arm/arm/conf.c +++ b/sys/arch/arm/arm/conf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: conf.c,v 1.46 2016/05/23 00:05:34 deraadt Exp $ */ +/* $OpenBSD: conf.c,v 1.47 2016/07/31 09:18:01 jsg Exp $ */ /* $NetBSD: conf.c,v 1.10 2002/04/19 01:04:38 wiz Exp $ */ /* @@ -403,8 +403,7 @@ dev_t swapdev = makedev(1, 0); * 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); } @@ -413,8 +412,7 @@ iskmemdev(dev) * Returns true if dev is /dev/zero. */ int -iszerodev(dev) - dev_t dev; +iszerodev(dev_t dev) { return (major(dev) == mem_no && minor(dev) == 3); } @@ -453,7 +451,7 @@ int chrtoblktbl[] = { int nchrtoblktbl = nitems(chrtoblktbl); dev_t -getnulldev() +getnulldev(void) { return makedev(mem_no, 2); } diff --git a/sys/arch/arm/arm/vm_machdep.c b/sys/arch/arm/arm/vm_machdep.c index bb69e88b31e..38dba6d7d77 100644 --- a/sys/arch/arm/arm/vm_machdep.c +++ b/sys/arch/arm/arm/vm_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vm_machdep.c,v 1.17 2016/04/24 01:31:02 patrick Exp $ */ +/* $OpenBSD: vm_machdep.c,v 1.18 2016/07/31 09:18:01 jsg Exp $ */ /* $NetBSD: vm_machdep.c,v 1.31 2004/01/04 11:33:29 jdolecek Exp $ */ /* @@ -96,13 +96,8 @@ extern void proc_trampoline (void); * accordingly. */ void -cpu_fork(p1, p2, stack, stacksize, func, arg) - struct proc *p1; - struct proc *p2; - void *stack; - size_t stacksize; - void (*func) (void *); - void *arg; +cpu_fork(struct proc *p1, struct proc *p2, void *stack, + size_t stacksize, void (*func) (void *), void *arg) { struct pcb *pcb = (struct pcb *)&p2->p_addr->u_pcb; struct trapframe *tf; @@ -166,9 +161,7 @@ cpu_exit(struct proc *p) * do not need to pass an access_type to pmap_enter(). */ void -vmapbuf(bp, len) - struct buf *bp; - vsize_t len; +vmapbuf(struct buf *bp, vsize_t len) { vaddr_t faddr, taddr, off; paddr_t fpa; @@ -204,9 +197,7 @@ vmapbuf(bp, len) * Unmap a previously-mapped user I/O request. */ void -vunmapbuf(bp, len) - struct buf *bp; - vsize_t len; +vunmapbuf(struct buf *bp, vsize_t len) { vaddr_t addr, off; |