diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2006-03-23 04:10:14 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2006-03-23 04:10:14 +0000 |
commit | 21f553a8fa976465be832f32d3d9a18001afe4c3 (patch) | |
tree | 618cdce4e84528e9d291002c48d76d3e345214ad /sys/arch | |
parent | 6911e49f48c2d00c69f7626e3535ceb784410139 (diff) |
ANSI and KNF.
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/mac68k/dev/if_sn_nubus.c | 21 | ||||
-rw-r--r-- | sys/arch/mac68k/dev/if_sn_obio.c | 25 |
2 files changed, 15 insertions, 31 deletions
diff --git a/sys/arch/mac68k/dev/if_sn_nubus.c b/sys/arch/mac68k/dev/if_sn_nubus.c index 376de141ed7..3b7ad8936ee 100644 --- a/sys/arch/mac68k/dev/if_sn_nubus.c +++ b/sys/arch/mac68k/dev/if_sn_nubus.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_sn_nubus.c,v 1.17 2005/04/26 21:09:35 martin Exp $ */ +/* $OpenBSD: if_sn_nubus.c,v 1.18 2006/03/23 04:10:13 brad Exp $ */ /* $NetBSD: if_sn_nubus.c,v 1.13 1997/05/11 19:11:34 scottr Exp $ */ /* * Copyright (C) 1997 Allen Briggs @@ -65,10 +65,7 @@ struct cfattach sn_nubus_ca = { static int -sn_nubus_match(parent, cf, aux) - struct device *parent; - void *cf; - void *aux; +sn_nubus_match(struct device *parent, void *cf, void *aux) { struct nubus_attach_args *na = (struct nubus_attach_args *) aux; bus_space_handle_t bsh; @@ -97,16 +94,14 @@ sn_nubus_match(parent, cf, aux) bus_space_unmap(na->na_tag, bsh, NBMEMSIZE); - return rv; + return (rv); } /* * Install interface into kernel networking data structures */ static void -sn_nubus_attach(parent, self, aux) - struct device *parent, *self; - void *aux; +sn_nubus_attach(struct device *parent, struct device *self, void *aux) { struct sn_softc *sc = (void *)self; struct nubus_attach_args *na = (struct nubus_attach_args *)aux; @@ -266,10 +261,8 @@ sn_nubus_attach(parent, self, aux) } static int -sn_nb_card_vendor(bst, bsh, na) - bus_space_tag_t bst; - bus_space_handle_t bsh; - struct nubus_attach_args *na; +sn_nb_card_vendor(bus_space_tag_t bst, bus_space_handle_t bsh, + struct nubus_attach_args *na) { int vendor = SN_VENDOR_UNKNOWN; @@ -300,5 +293,5 @@ sn_nb_card_vendor(bst, bsh, na) break; } - return vendor; + return (vendor); } diff --git a/sys/arch/mac68k/dev/if_sn_obio.c b/sys/arch/mac68k/dev/if_sn_obio.c index 30e1fb0cce7..e021e3a3523 100644 --- a/sys/arch/mac68k/dev/if_sn_obio.c +++ b/sys/arch/mac68k/dev/if_sn_obio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_sn_obio.c,v 1.21 2006/01/01 13:15:59 miod Exp $ */ +/* $OpenBSD: if_sn_obio.c,v 1.22 2006/03/23 04:10:13 brad Exp $ */ /* $NetBSD: if_sn_obio.c,v 1.9 1997/04/22 20:56:15 scottr Exp $ */ /* @@ -64,10 +64,7 @@ struct cfattach sn_obio_ca = { }; static int -sn_obio_match(parent, cf, aux) - struct device *parent; - void *cf; - void *aux; +sn_obio_match(struct device *parent, void *cf, void *aux) { struct obio_attach_args *oa = (struct obio_attach_args *)aux; bus_space_handle_t bsh; @@ -92,9 +89,7 @@ sn_obio_match(parent, cf, aux) * Install interface into kernel networking data structures */ static void -sn_obio_attach(parent, self, aux) - struct device *parent, *self; - void *aux; +sn_obio_attach(struct device *parent, struct device *self, void *aux) { struct obio_attach_args *oa = (struct obio_attach_args *)aux; struct sn_softc *sc = (void *)self; @@ -188,9 +183,7 @@ sn_obio_attach(parent, self, aux) } static int -sn_obio_getaddr(sc, lladdr) - struct sn_softc *sc; - u_int8_t *lladdr; +sn_obio_getaddr(struct sn_softc *sc, u_int8_t *lladdr) { bus_space_handle_t bsh; @@ -209,7 +202,7 @@ sn_obio_getaddr(sc, lladdr) bus_space_unmap(sc->sc_regt, bsh, NBPG); - return 0; + return (0); } /* @@ -217,9 +210,7 @@ sn_obio_getaddr(sc, lladdr) * when we can properly get the MAC address on the PBs. */ static int -sn_obio_getaddr_kludge(sc, lladdr) - struct sn_softc *sc; - u_int8_t *lladdr; +sn_obio_getaddr_kludge(struct sn_softc *sc, u_int8_t *lladdr) { int i, ors = 0; @@ -254,7 +245,7 @@ sn_obio_getaddr_kludge(sc, lladdr) wbflush(); if (ors == 0) - return -1; + return (-1); - return 0; + return (0); } |