diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2014-11-19 19:59:40 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2014-11-19 19:59:40 +0000 |
commit | 8853713555530cba7dd2789bef1bca59f0d7342c (patch) | |
tree | 7ea1f76b401c9044ae217cd98223e2b86546c42d /sys | |
parent | 79e4e6f655929934011672629ae1efc1a76ce11b (diff) |
Ansify.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/lib/libsa/ether.c | 25 |
1 files changed, 8 insertions, 17 deletions
diff --git a/sys/lib/libsa/ether.c b/sys/lib/libsa/ether.c index 19e13a10a37..20b5e8f6e67 100644 --- a/sys/lib/libsa/ether.c +++ b/sys/lib/libsa/ether.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ether.c,v 1.8 2014/07/13 15:31:20 mpi Exp $ */ +/* $OpenBSD: ether.c,v 1.9 2014/11/19 19:59:39 miod Exp $ */ /* $NetBSD: ether.c,v 1.8 1996/10/13 02:29:00 christos Exp $ */ /* @@ -55,15 +55,10 @@ /* Caller must leave room for ethernet header in front!! */ ssize_t -sendether(d, pkt, len, dea, etype) - struct iodesc *d; - void *pkt; - size_t len; - u_char *dea; - int etype; +sendether(struct iodesc *d, void *pkt, size_t len, u_char *dea, int etype) { -ssize_t n; -struct ether_header *eh; + ssize_t n; + struct ether_header *eh; #ifdef ETHER_DEBUG if (debug) @@ -91,15 +86,11 @@ struct ether_header *eh; * NOTE: Caller must leave room for the Ether header. */ ssize_t -readether(d, pkt, len, tleft, etype) -struct iodesc *d; -void *pkt; -size_t len; - time_t tleft; -u_int16_t *etype; +readether(struct iodesc *d, void *pkt, size_t len, time_t tleft, + u_int16_t *etype) { -ssize_t n; -struct ether_header *eh; + ssize_t n; + struct ether_header *eh; #ifdef ETHER_DEBUG if (debug) |