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/uni/sscop_lower.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/uni/sscop_lower.c')
-rw-r--r-- | sys/netatm/uni/sscop_lower.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/sys/netatm/uni/sscop_lower.c b/sys/netatm/uni/sscop_lower.c index 6f25d57..76d93b9 100644 --- a/sys/netatm/uni/sscop_lower.c +++ b/sys/netatm/uni/sscop_lower.c @@ -131,16 +131,16 @@ void sscop_lower(cmd, tok, arg1, arg2) int cmd; void *tok; - int arg1; - int arg2; + intptr_t arg1; + intptr_t arg2; { struct sscop *sop = (struct sscop *)tok; - void (**stab)(struct sscop *, int, int); - void (*func)(struct sscop *, int, int); + void (**stab)(struct sscop *, intptr_t, intptr_t); + void (*func)(struct sscop *, intptr_t, intptr_t); int val; - ATM_DEBUG5("sscop_lower: cmd=0x%x, sop=%p, state=%d, arg1=0x%x, arg2=0x%x\n", - cmd, sop, sop->so_state, arg1, arg2); + ATM_DEBUG5("sscop_lower: cmd=0x%x, sop=%p, state=%d, arg1=%p, arg2=%p\n", + cmd, sop, sop->so_state, (void *)arg1, (void *)arg2); /* * Validate stack command @@ -214,8 +214,8 @@ sscop_lower(cmd, tok, arg1, arg2) void sscop_aa_noop_0(sop, arg1, arg2) struct sscop *sop; - int arg1; - int arg2; + intptr_t arg1; + intptr_t arg2; { /* * Nothing to do @@ -239,8 +239,8 @@ sscop_aa_noop_0(sop, arg1, arg2) void sscop_aa_noop_1(sop, arg1, arg2) struct sscop *sop; - int arg1; - int arg2; + intptr_t arg1; + intptr_t arg2; { /* @@ -268,8 +268,8 @@ sscop_aa_noop_1(sop, arg1, arg2) void sscop_init_inst(sop, arg1, arg2) struct sscop *sop; - int arg1; - int arg2; + intptr_t arg1; + intptr_t arg2; { int err; @@ -330,8 +330,8 @@ sscop_init_inst(sop, arg1, arg2) void sscop_term_all(sop, arg1, arg2) struct sscop *sop; - int arg1; - int arg2; + intptr_t arg1; + intptr_t arg2; { int err; |