summaryrefslogtreecommitdiff
path: root/sys/arch/macppc/stand/netif_of.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2002-09-15 09:02:00 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2002-09-15 09:02:00 +0000
commit8f6680cb282c2e34abd90fe05faa4162db0d95bc (patch)
tree2ee5f1f62f18a077f21d599f3b18a39f701c9275 /sys/arch/macppc/stand/netif_of.c
parent0684ecd769796e91ce28e5f3907744c787dcbe07 (diff)
backout premature
Diffstat (limited to 'sys/arch/macppc/stand/netif_of.c')
-rw-r--r--sys/arch/macppc/stand/netif_of.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/sys/arch/macppc/stand/netif_of.c b/sys/arch/macppc/stand/netif_of.c
index f055969e1b0..286f5f9594a 100644
--- a/sys/arch/macppc/stand/netif_of.c
+++ b/sys/arch/macppc/stand/netif_of.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: netif_of.c,v 1.2 2002/09/15 02:02:44 deraadt Exp $ */
+/* $OpenBSD: netif_of.c,v 1.3 2002/09/15 09:01:59 deraadt Exp $ */
/* $NetBSD: netif_of.c,v 1.1 1997/04/16 20:29:19 thorpej Exp $ */
/*
@@ -82,7 +82,7 @@ netif_open(machdep_hint)
struct iodesc *io;
int fd, error;
char addr[32];
-
+
#ifdef NETIF_DEBUG
printf("netif_open...");
#endif
@@ -99,12 +99,12 @@ netif_open(machdep_hint)
netif_of.nif_devdata = op;
io->io_netif = &netif_of;
-
+
/* Put our ethernet address in io->myea */
OF_getprop(OF_instance_to_package(op->handle),
- "local-mac-address", io->myea, sizeof io->myea) == -1 &&
+ "local-mac-address", io->myea, sizeof io->myea) == -1 &&
OF_getprop(OF_instance_to_package(op->handle),
- "mac-address", io->myea, sizeof io->myea);
+ "mac-address", io->myea, sizeof io->myea);
#ifdef NETIF_DEBUG
printf("OK\n");
@@ -163,7 +163,7 @@ netif_put(desc, pkt, len)
struct ether_header *eh;
printf("netif_put: desc=0x%x pkt=0x%x len=%d\n",
- desc, pkt, len);
+ desc, pkt, len);
eh = pkt;
printf("dst: %s ", ether_sprintf(eh->ether_dhost));
printf("src: %s ", ether_sprintf(eh->ether_shost));
@@ -211,7 +211,7 @@ netif_get(desc, pkt, maxlen, timo)
#ifdef NETIF_DEBUG
printf("netif_get: pkt=0x%x, maxlen=%d, tmo=%d\n",
- pkt, maxlen, timo);
+ pkt, maxlen, timo);
#endif
tmo_ms = timo * 1000;
@@ -220,7 +220,7 @@ netif_get(desc, pkt, maxlen, timo)
do {
len = OF_read(op->handle, pkt, maxlen);
} while ((len == -2 || len == 0) &&
- ((OF_milliseconds() - tick0) < tmo_ms));
+ ((OF_milliseconds() - tick0) < tmo_ms));
#ifdef NETIF_DEBUG
printf("netif_get: received len=%d\n", len);