*/
#define swap_u_16(x) {\
- unsigned long _krb_swap_tmp[4];\
+ unsigned KRB4_32 _krb_swap_tmp[4];\
swab(((char *) x) +0, ((char *) _krb_swap_tmp) +14 ,2); \
swab(((char *) x) +2, ((char *) _krb_swap_tmp) +12 ,2); \
swab(((char *) x) +4, ((char *) _krb_swap_tmp) +10 ,2); \
}
#define swap_u_12(x) {\
- unsigned long _krb_swap_tmp[4];\
+ unsigned KRB4_32 _krb_swap_tmp[4];\
swab(( char *) x, ((char *) _krb_swap_tmp) +10 ,2); \
swab(((char *) x) +2, ((char *) _krb_swap_tmp) +8 ,2); \
swab(((char *) x) +4, ((char *) _krb_swap_tmp) +6 ,2); \
}
#define swap_C_Block(x) {\
- unsigned long _krb_swap_tmp[4];\
+ unsigned KRB4_32 _krb_swap_tmp[4];\
swab(( char *) x, ((char *) _krb_swap_tmp) +6 ,2); \
swab(((char *) x) +2,((char *) _krb_swap_tmp) +4 ,2); \
swab(((char *) x) +4,((char *) _krb_swap_tmp) +2 ,2); \
memcpy((char *)x,(char *)_krb_swap_tmp,8);\
}
#define swap_u_quad(x) {\
- unsigned long _krb_swap_tmp[4];\
+ unsigned KRB4_32 _krb_swap_tmp[4];\
swab(( char *) &x, ((char *) _krb_swap_tmp) +6 ,2); \
swab(((char *) &x) +2,((char *) _krb_swap_tmp) +4 ,2); \
swab(((char *) &x) +4,((char *) _krb_swap_tmp) +2 ,2); \
}
#define swap_u_long(x) {\
- unsigned long _krb_swap_tmp[4];\
+ unsigned KRB4_32 _krb_swap_tmp[4];\
swab((char *) &x, ((char *) _krb_swap_tmp) +2 ,2); \
swab(((char *) &x) +2,((char *) _krb_swap_tmp),2); \
x = _krb_swap_tmp[0]; \
/* rd_req.c */
int krb_set_key P_TYPE_((char *, int ));
-int krb_rd_req P_TYPE_((KTEXT , char *, char *, long , AUTH_DAT *, char *));
+int krb_rd_req P_TYPE_((KTEXT , char *, char *, unsigned KRB4_32 , AUTH_DAT *, char *));
/* rd_safe.c */
long krb_rd_safe P_TYPE_((u_char *, u_long , C_Block *, struct sockaddr_in *, struct sockaddr_in *, MSG_DAT *));