summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Peereboom <marco@cvs.openbsd.org>2006-04-14 21:26:19 +0000
committerMarco Peereboom <marco@cvs.openbsd.org>2006-04-14 21:26:19 +0000
commit66319557d788cc372554e1fb0a6770e81051aaf7 (patch)
tree458a2bfca548345a1e81ad986f192c6501b20ec9
parent60325da4a39fcd16651706a8a0c66591a318b441 (diff)
ANSIfy function names.
Spacing. KNF.
-rw-r--r--sys/arch/i386/i386/mainbus.c24
1 files changed, 9 insertions, 15 deletions
diff --git a/sys/arch/i386/i386/mainbus.c b/sys/arch/i386/i386/mainbus.c
index 8bae218b5a5..d5cfc3727c1 100644
--- a/sys/arch/i386/i386/mainbus.c
+++ b/sys/arch/i386/i386/mainbus.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mainbus.c,v 1.25 2006/03/13 20:10:49 brad Exp $ */
+/* $OpenBSD: mainbus.c,v 1.26 2006/04/14 21:26:18 marco Exp $ */
/* $NetBSD: mainbus.c,v 1.21 1997/06/06 23:14:20 thorpej Exp $ */
/*
@@ -125,24 +125,19 @@ int isa_has_been_seen;
* Probe for the mainbus; always succeeds.
*/
int
-mainbus_match(parent, match, aux)
- struct device *parent;
- void *match, *aux;
+mainbus_match(struct device *parent, void *match, void *aux)
{
-
- return 1;
+ return (1);
}
/*
* Attach the mainbus.
*/
void
-mainbus_attach(parent, self, aux)
- struct device *parent, *self;
- void *aux;
+mainbus_attach(struct device *parent, struct device *self, void *aux)
{
- union mainbus_attach_args mba;
- extern int cpu_id, cpu_feature;
+ union mainbus_attach_args mba;
+ extern int cpu_id, cpu_feature;
printf("\n");
@@ -264,15 +259,14 @@ mainbus_attach(parent, self, aux)
}
int
-mainbus_print(aux, pnp)
- void *aux;
- const char *pnp;
+mainbus_print(void *aux, const char *pnp)
{
- union mainbus_attach_args *mba = aux;
+ union mainbus_attach_args *mba = aux;
if (pnp)
printf("%s at %s", mba->mba_busname, pnp);
if (!strcmp(mba->mba_busname, "pci"))
printf(" bus %d", mba->mba_pba.pba_bus);
+
return (UNCONF);
}