summaryrefslogtreecommitdiff
path: root/sys/dev/ic/if_wi.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2002-06-21 06:56:25 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2002-06-21 06:56:25 +0000
commit782b83d78cd05f5bdc796142954f5859e6c5e55f (patch)
tree10dd28be3b8294af301ea5b1386dee37242a856b /sys/dev/ic/if_wi.c
parent87d34581d17d049072ed8b04476da5213bcf7e38 (diff)
Add some missing casts of sc->wi_txbuf -> caddr_t
Diffstat (limited to 'sys/dev/ic/if_wi.c')
-rw-r--r--sys/dev/ic/if_wi.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/ic/if_wi.c b/sys/dev/ic/if_wi.c
index d77fc7de6ef..a07cc9507e3 100644
--- a/sys/dev/ic/if_wi.c
+++ b/sys/dev/ic/if_wi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_wi.c,v 1.69 2002/06/21 06:50:37 millert Exp $ */
+/* $OpenBSD: if_wi.c,v 1.70 2002/06/21 06:56:24 millert Exp $ */
/*
* Copyright (c) 1997, 1998, 1999
@@ -124,7 +124,7 @@ u_int32_t widebug = WIDEBUG;
#if !defined(lint) && !defined(__OpenBSD__)
static const char rcsid[] =
- "$OpenBSD: if_wi.c,v 1.69 2002/06/21 06:50:37 millert Exp $";
+ "$OpenBSD: if_wi.c,v 1.70 2002/06/21 06:56:24 millert Exp $";
#endif /* lint */
#ifdef foo
@@ -791,7 +791,7 @@ wi_update_stats(sc)
if (gen.wi_type == htole16(WI_INFO_SCAN_RESULTS)) {
sc->wi_scanbuf_len = letoh16(gen.wi_len);
- wi_read_data(sc, id, 4, (char *)sc->wi_scanbuf,
+ wi_read_data(sc, id, 4, (caddr_t)sc->wi_scanbuf,
sc->wi_scanbuf_len * 2);
return;
} else if (gen.wi_type != htole16(WI_INFO_COUNTERS))
@@ -2069,7 +2069,7 @@ nextpkt:
m0->m_pkthdr.len - sizeof(struct ether_header),
(caddr_t)&sc->wi_txbuf[12]);
- wi_do_hostencrypt(sc, &sc->wi_txbuf[0],
+ wi_do_hostencrypt(sc, (caddr_t)&sc->wi_txbuf,
tx_frame.wi_dat_len);
tx_frame.wi_dat_len += IEEE80211_WEP_IVLEN +