summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64/stand/ofwboot/netif_of.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/sparc64/stand/ofwboot/netif_of.c')
-rw-r--r--sys/arch/sparc64/stand/ofwboot/netif_of.c24
1 files changed, 7 insertions, 17 deletions
diff --git a/sys/arch/sparc64/stand/ofwboot/netif_of.c b/sys/arch/sparc64/stand/ofwboot/netif_of.c
index c98ad0f4293..513a9d34aed 100644
--- a/sys/arch/sparc64/stand/ofwboot/netif_of.c
+++ b/sys/arch/sparc64/stand/ofwboot/netif_of.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: netif_of.c,v 1.4 2001/08/22 10:44:02 art Exp $ */
+/* $OpenBSD: netif_of.c,v 1.5 2009/08/17 14:23:09 jsing Exp $ */
/* $NetBSD: netif_of.c,v 1.1 2000/08/20 14:58:39 mrg Exp $ */
/*
@@ -61,8 +61,7 @@ static struct netif netif_of;
struct iodesc sockets[SOPEN_MAX];
struct iodesc *
-socktodesc(sock)
- int sock;
+socktodesc(int sock)
{
if (sock != 0)
return NULL;
@@ -70,8 +69,7 @@ socktodesc(sock)
}
int
-netif_open(machdep_hint)
- void *machdep_hint;
+netif_open(void *machdep_hint)
{
struct of_dev *op = machdep_hint;
struct iodesc *io;
@@ -106,8 +104,7 @@ netif_open(machdep_hint)
}
int
-netif_close(fd)
- int fd;
+netif_close(int fd)
{
struct iodesc *io;
struct netif *ni;
@@ -140,10 +137,7 @@ netif_close(fd)
* Return the length sent (or -1 on error).
*/
ssize_t
-netif_put(desc, pkt, len)
- struct iodesc *desc;
- void *pkt;
- size_t len;
+netif_put(struct iodesc *desc, void *pkt, size_t len)
{
struct of_dev *op;
ssize_t rv;
@@ -186,11 +180,7 @@ netif_put(desc, pkt, len)
* Return the total length received (or -1 on error).
*/
ssize_t
-netif_get(desc, pkt, maxlen, timo)
- struct iodesc *desc;
- void *pkt;
- size_t maxlen;
- time_t timo;
+netif_get(struct iodesc *desc, void *pkt, size_t maxlen, time_t timo)
{
struct of_dev *op;
int tick0, tmo_ms;
@@ -235,7 +225,7 @@ netif_get(desc, pkt, maxlen, timo)
* Shouldn't really be here, but is used solely for networking, so...
*/
time_t
-getsecs()
+getsecs(void)
{
return OF_milliseconds() / 1000;
}