summaryrefslogtreecommitdiffstats
path: root/sys/netatm/atm_cm.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2002-11-08 18:27:30 +0000
committerjhb <jhb@FreeBSD.org>2002-11-08 18:27:30 +0000
commitb72917b520dafbce4c1cc804dc93887d66c593b3 (patch)
tree291ae2bd3be9306179924d18340c26cf8e4f0b9c /sys/netatm/atm_cm.c
parent451dec5f86ca56ab2475ea41c94afa7b4fc2b919 (diff)
downloadFreeBSD-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_cm.c')
-rw-r--r--sys/netatm/atm_cm.c34
1 files changed, 17 insertions, 17 deletions
diff --git a/sys/netatm/atm_cm.c b/sys/netatm/atm_cm.c
index f17ae2a..851ce4b 100644
--- a/sys/netatm/atm_cm.c
+++ b/sys/netatm/atm_cm.c
@@ -69,9 +69,9 @@ struct atm_cm_stat atm_cm_stat = {0};
/*
* Local functions
*/
-static void atm_cm_cpcs_upper(int, void *, int, int);
-static void atm_cm_saal_upper(int, void *, int, int);
-static void atm_cm_sscop_upper(int, void *, int, int);
+static void atm_cm_cpcs_upper(int, void *, intptr_t, intptr_t);
+static void atm_cm_saal_upper(int, void *, intptr_t, intptr_t);
+static void atm_cm_sscop_upper(int, void *, intptr_t, intptr_t);
static Atm_connvc * atm_cm_share_llc(Atm_attributes *);
static void atm_cm_closeconn(Atm_connection *,
struct t_atm_cause *);
@@ -165,7 +165,7 @@ atm_cm_connect(epp, token, ap, copp)
struct atm_pif *pip;
struct sigmgr *smp;
struct stack_list sl;
- void (*upf)(int, void *, int, int);
+ void (*upf)(int, void *, intptr_t, intptr_t);
int s, sli, err, err2;
*copp = NULL;
@@ -1432,7 +1432,7 @@ atm_cm_connected(cvp)
/*
* Currently only supported for CPCS API
*/
- atm_cm_cpcs_upper(CPCS_UNITDATA_SIG, cvp, (int)m, 0);
+ atm_cm_cpcs_upper(CPCS_UNITDATA_SIG, cvp, (intptr_t)m, 0);
}
return;
@@ -1761,7 +1761,7 @@ atm_cm_accept(cvp, cop)
Atm_connection *cop;
{
struct stack_list sl;
- void (*upf)(int, void *, int, int);
+ void (*upf)(int, void *, intptr_t, intptr_t);
int sli, err, err2;
@@ -2810,7 +2810,7 @@ atm_cm_cpcs_data(cop, m)
* Finally, we can send the packet on its way
*/
STACK_CALL(CPCS_UNITDATA_INV, cvp->cvc_lower, cvp->cvc_tokl,
- cvp, (int)m, 0, err);
+ cvp, (intptr_t)m, 0, err);
done:
return (err);
@@ -2837,8 +2837,8 @@ static void
atm_cm_cpcs_upper(cmd, tok, arg1, arg2)
int cmd;
void *tok;
- int arg1;
- int arg2;
+ intptr_t arg1;
+ intptr_t arg2;
{
Atm_connection *cop;
Atm_connvc *cvp = tok;
@@ -3017,7 +3017,7 @@ atm_cm_saal_ctl(cmd, cop, arg)
* Pass command down the stack
*/
STACK_CALL(cmd, cvp->cvc_lower, cvp->cvc_tokl, cvp,
- (int)arg, 0, err);
+ (intptr_t)arg, 0, err);
break;
default:
@@ -3077,7 +3077,7 @@ atm_cm_saal_data(cop, m)
* Finally, we can send the packet on its way
*/
STACK_CALL(SSCF_UNI_DATA_REQ, cvp->cvc_lower, cvp->cvc_tokl,
- cvp, (int)m, 0, err);
+ cvp, (intptr_t)m, 0, err);
done:
return (err);
@@ -3104,8 +3104,8 @@ static void
atm_cm_saal_upper(cmd, tok, arg1, arg2)
int cmd;
void *tok;
- int arg1;
- int arg2;
+ intptr_t arg1;
+ intptr_t arg2;
{
Atm_connection *cop;
Atm_connvc *cvp = tok;
@@ -3221,7 +3221,7 @@ atm_cm_sscop_ctl(cmd, cop, arg1, arg2)
* Pass command down the stack
*/
STACK_CALL(cmd, cvp->cvc_lower, cvp->cvc_tokl, cvp,
- (int)arg1, (int)arg2, err);
+ (intptr_t)arg1, (intptr_t)arg2, err);
break;
default:
@@ -3281,7 +3281,7 @@ atm_cm_sscop_data(cop, m)
* Finally, we can send the packet on its way
*/
STACK_CALL(SSCOP_DATA_REQ, cvp->cvc_lower, cvp->cvc_tokl,
- cvp, (int)m, 0, err);
+ cvp, (intptr_t)m, 0, err);
done:
return (err);
@@ -3308,8 +3308,8 @@ static void
atm_cm_sscop_upper(cmd, tok, arg1, arg2)
int cmd;
void *tok;
- int arg1;
- int arg2;
+ intptr_t arg1;
+ intptr_t arg2;
{
Atm_connection *cop;
Atm_connvc *cvp = tok;
OpenPOWER on IntegriCloud