summaryrefslogtreecommitdiff
path: root/sys/arch/macppc/dev/uni_n.c
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2003-10-16 03:31:26 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2003-10-16 03:31:26 +0000
commit137aeae781b7de7306f8f0c06c3d403a92f98ce0 (patch)
tree6d6681fa266bc573a04433d9f6348c9a994df50c /sys/arch/macppc/dev/uni_n.c
parent825466e44c9a56a7b16f4d3eb0fa1212ff7f0a70 (diff)
more ANSI/KNF.
Diffstat (limited to 'sys/arch/macppc/dev/uni_n.c')
-rw-r--r--sys/arch/macppc/dev/uni_n.c23
1 files changed, 9 insertions, 14 deletions
diff --git a/sys/arch/macppc/dev/uni_n.c b/sys/arch/macppc/dev/uni_n.c
index 87eb4e7a262..fc9a148844a 100644
--- a/sys/arch/macppc/dev/uni_n.c
+++ b/sys/arch/macppc/dev/uni_n.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uni_n.c,v 1.7 2003/06/03 01:35:30 drahn Exp $ */
+/* $OpenBSD: uni_n.c,v 1.8 2003/10/16 03:31:25 drahn Exp $ */
/*
* Copyright (c) 1998-2001 Dale Rahn.
@@ -54,27 +54,21 @@ struct cfattach memc_ca = {
void *uni_n_config(int handle);
int
-memcmatch(parent, cf, aux)
- struct device *parent;
- void *cf;
- void *aux;
+memcmatch(struct device *parent, void *cf, void *aux)
{
struct confargs *ca = aux;
static int memc_attached = 0;
/* allow only one instance */
if (memc_attached == 0) {
- if (0 == strcmp (ca->ca_name, "memc")) {
+ if (0 == strcmp (ca->ca_name, "memc"))
return 1;
- }
}
return 0;
}
static void
-memcattach(parent, self, aux)
- struct device *parent, *self;
- void *aux;
+memcattach(struct device *parent, struct device *self, void *aux)
{
struct confargs *ca = aux;
int len;
@@ -82,14 +76,15 @@ memcattach(parent, self, aux)
struct memc_softc *sc = (struct memc_softc *)self;
len = OF_getprop(ca->ca_node, "name", name, sizeof name);
- if (len > 0) {
+ if (len > 0)
name[len] = 0;
- }
- if (strcmp (name, "uni-n")== 0) {
+
+ if (strcmp (name, "uni-n")== 0)
sc->baseaddr = uni_n_config(ca->ca_node);
- }
+
printf (": %s\n", name);
}
+
void *
uni_n_config(int handle)
{