diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2008-07-20 17:40:19 +0000 |
---|---|---|
committer | Thomas Schwinge <tschwinge@gnu.org> | 2009-06-18 00:27:18 +0200 |
commit | ca9d48e5538e0e0088a6d865091d3b9992d7378c (patch) | |
tree | 6bf763e6ee6d24c78e0454f2a5126658d6064242 /device | |
parent | cdab6fb231fd19ef1ae22db7c1cc98b8f7fbf98c (diff) |
2008-07-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
* device/net_io.c (net_set_filter): Reference the proper member
instead of casting pointers.
* device/subrs.c (ether_sprintf): Set type of `i' to `int'.
* i386/i386/trap.c (kernel_trap): Pass page fault address to printf.
* i386/i386at/rtc.c (rtcget): Fix parenthesis to really test the bit.
Diffstat (limited to 'device')
-rw-r--r-- | device/net_io.c | 4 | ||||
-rw-r--r-- | device/subrs.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/device/net_io.c b/device/net_io.c index dca99d7..a6f842e 100644 --- a/device/net_io.c +++ b/device/net_io.c @@ -1371,10 +1371,10 @@ net_set_filter(ifp, rcv_port, priority, filter, filter_count) /* Not checking for the same key values */ if (*p == 0) { - queue_init ((queue_t) hash_entp); + queue_init (&hash_entp->chain); *p = hash_entp; } else { - enqueue_tail((queue_t)*p, hash_entp); + enqueue_tail(&(*p)->chain, &hash_entp->chain); } ((net_hash_header_t)my_infp)->ref_count++; diff --git a/device/subrs.c b/device/subrs.c index 9b2b9ad..c2fe7ec 100644 --- a/device/subrs.c +++ b/device/subrs.c @@ -63,7 +63,7 @@ char * ether_sprintf(ap) register u_char *ap; { - register i; + register int i; static char etherbuf[18]; register char *cp = etherbuf; static char digits[] = "0123456789abcdef"; |