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_stack.h | |
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_stack.h')
-rw-r--r-- | sys/netatm/atm_stack.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/netatm/atm_stack.h b/sys/netatm/atm_stack.h index 45ae22c..4981ae2 100644 --- a/sys/netatm/atm_stack.h +++ b/sys/netatm/atm_stack.h @@ -55,9 +55,9 @@ struct stack_defn { int (*sd_inst) /* Stack instantiation */ (struct stack_defn **, Atm_connvc *); void (*sd_lower) /* Lower (from above) command handler */ - (int, void *, int, int); + (int, void *, intptr_t, intptr_t); void (*sd_upper) /* Upper (from below) command handler */ - (int, void *, int, int); + (int, void *, intptr_t, intptr_t); /* Variables used during stack instantiation */ void *sd_toku; /* Stack service instance token */ }; @@ -266,10 +266,10 @@ struct stackq_entry { struct stackq_entry *sq_next; /* Next entry in queue */ int sq_cmd; /* Stack command */ void (*sq_func) /* Destination function */ - (int, void *, int, int); + (int, void *, intptr_t, intptr_t); void *sq_token; /* Destination token */ - int sq_arg1; /* Command-specific argument */ - int sq_arg2; /* Command-specific argument */ + intptr_t sq_arg1; /* Command-specific argument */ + intptr_t sq_arg2; /* Command-specific argument */ Atm_connvc *sq_connvc; /* Connection VCC */ }; |