diff options
author | jhb <jhb@FreeBSD.org> | 2002-11-08 18:27:30 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2002-11-08 18:27:30 +0000 |
commit | b72917b520dafbce4c1cc804dc93887d66c593b3 (patch) | |
tree | 291ae2bd3be9306179924d18340c26cf8e4f0b9c /sys/netatm/atm_device.c | |
parent | 451dec5f86ca56ab2475ea41c94afa7b4fc2b919 (diff) | |
download | FreeBSD-src-b72917b520dafbce4c1cc804dc93887d66c593b3.zip FreeBSD-src-b72917b520dafbce4c1cc804dc93887d66c593b3.tar.gz |
- Change the ATM stack functions to use intptr_t instead of int for opaque
arguments.
- Fix a few other places that assumed that sizeof(int) == sizeof(void *).
Reviewed by: mdodd
Diffstat (limited to 'sys/netatm/atm_device.c')
-rw-r--r-- | sys/netatm/atm_device.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/netatm/atm_device.c b/sys/netatm/atm_device.c index 4834afc..c85303e 100644 --- a/sys/netatm/atm_device.c +++ b/sys/netatm/atm_device.c @@ -237,8 +237,8 @@ void atm_dev_lower(cmd, tok, arg1, arg2) int cmd; void *tok; - int arg1; - int arg2; + intptr_t arg1; + intptr_t arg2; { Cmn_vcc *cvp = (Cmn_vcc *)tok; Atm_connvc *cvcp = cvp->cv_connvc; @@ -324,7 +324,7 @@ atm_dev_lower(cmd, tok, arg1, arg2) */ KB_DATASTART(m, ip, int *); ip++; - if (*ip == (int)cvp) { + if (*ip == (intptr_t)cvp) { /* * Yep, so dequeue the entry */ @@ -499,7 +499,7 @@ atm_dev_alloc(size, align, flags) /* * Calculate correct alignment address to pass back to user */ - mep->me_uaddr = (void *) roundup((u_int)mep->me_kaddr, align); + mep->me_uaddr = (void *) roundup((uintptr_t)mep->me_kaddr, align); mep->me_ksize = ksize; mep->me_flags = flags; |