aboutsummaryrefslogtreecommitdiff
path: root/sys/pci/if_ax.c
diff options
context:
space:
mode:
authorMatthew Dillon <dillon@FreeBSD.org>1999-01-28 00:57:57 +0000
committerMatthew Dillon <dillon@FreeBSD.org>1999-01-28 00:57:57 +0000
commit8aef171243894d9b06e5ac740bfa5e8686fc4c1a (patch)
treef908d89518cbc0f801b11f1750100b49454326a1 /sys/pci/if_ax.c
parent7191deb01ed2d308d347683ba7c8e5ea66bab570 (diff)
downloadsrc-8aef171243894d9b06e5ac740bfa5e8686fc4c1a.tar.gz
src-8aef171243894d9b06e5ac740bfa5e8686fc4c1a.zip
Fix warnings in preparation for adding -Wall -Wcast-qual to the
kernel compile
Notes
Notes: svn path=/head/; revision=43311
Diffstat (limited to 'sys/pci/if_ax.c')
-rw-r--r--sys/pci/if_ax.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/pci/if_ax.c b/sys/pci/if_ax.c
index 34f1e881b5be..098317b614dd 100644
--- a/sys/pci/if_ax.c
+++ b/sys/pci/if_ax.c
@@ -29,7 +29,7 @@
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
* THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: if_ax.c,v 1.8 1999/01/16 20:33:34 wpaul Exp $
+ * $Id: if_ax.c,v 1.3 1999/01/16 20:40:52 wpaul Exp $
*/
/*
@@ -87,7 +87,7 @@
#ifndef lint
static const char rcsid[] =
- "$Id: if_ax.c,v 1.8 1999/01/16 20:33:34 wpaul Exp $";
+ "$Id: if_ax.c,v 1.3 1999/01/16 20:40:52 wpaul Exp $";
#endif
/*
@@ -1347,7 +1347,7 @@ static int ax_list_rx_init(sc)
for (i = 0; i < AX_RX_LIST_CNT; i++) {
cd->ax_rx_chain[i].ax_ptr =
- (struct ax_desc *)&ld->ax_rx_list[i];
+ (volatile struct ax_desc *)&ld->ax_rx_list[i];
if (ax_newbuf(sc, &cd->ax_rx_chain[i]) == ENOBUFS)
return(ENOBUFS);
if (i == (AX_RX_LIST_CNT - 1)) {
@@ -2129,7 +2129,7 @@ static void ax_stop(sc)
sc->ax_cdata.ax_rx_chain[i].ax_mbuf = NULL;
}
}
- bzero((char *)&sc->ax_ldata->ax_rx_list,
+ bzero((volatile char *)&sc->ax_ldata->ax_rx_list,
sizeof(sc->ax_ldata->ax_rx_list));
/*
@@ -2142,7 +2142,7 @@ static void ax_stop(sc)
}
}
- bzero((char *)&sc->ax_ldata->ax_tx_list,
+ bzero((volatile char *)&sc->ax_ldata->ax_tx_list,
sizeof(sc->ax_ldata->ax_tx_list));
ifp->if_flags &= ~(IFF_RUNNING | IFF_OACTIVE);