summaryrefslogtreecommitdiffstats
path: root/sys/dev/hea/eni_transmit.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2002-11-06 22:58:55 +0000
committerjhb <jhb@FreeBSD.org>2002-11-06 22:58:55 +0000
commit22de9969b03a4095e7f4ced476b44cbf8940c804 (patch)
treeb9c644fe435844323fa950fc91719ced8e19e05e /sys/dev/hea/eni_transmit.c
parent74e3cefa12c6299ea428f8aee0e5d4d2b3cdbe05 (diff)
downloadFreeBSD-src-22de9969b03a4095e7f4ced476b44cbf8940c804.zip
FreeBSD-src-22de9969b03a4095e7f4ced476b44cbf8940c804.tar.gz
Adjust some casts to quiet warnings.
Reviewed by: mdodd
Diffstat (limited to 'sys/dev/hea/eni_transmit.c')
-rw-r--r--sys/dev/hea/eni_transmit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/hea/eni_transmit.c b/sys/dev/hea/eni_transmit.c
index 914ef32..8d02f48c 100644
--- a/sys/dev/hea/eni_transmit.c
+++ b/sys/dev/hea/eni_transmit.c
@@ -483,7 +483,7 @@ retry:
* Get start of data onto full-word alignment
*/
KB_DATASTART ( m, cp, caddr_t );
- if ((align = ((u_int)cp) & (sizeof(u_long)-1)) != 0) {
+ if ((align = ((uintptr_t)cp) & (sizeof(u_long)-1)) != 0) {
/*
* Gotta slide the data up
*/
@@ -748,7 +748,7 @@ retry:
*/
tx_send = (Eni_mem)
((((int)eup->eu_midway[MIDWAY_TXPLACE] & 0x7ff) << ENI_LOC_PREDIV) +
- (int)eup->eu_ram);
+ (intptr_t)eup->eu_ram);
/*
* Set descriptor word
OpenPOWER on IntegriCloud