diff options
author | jb <jb@FreeBSD.org> | 2007-11-17 23:14:06 +0000 |
---|---|---|
committer | jb <jb@FreeBSD.org> | 2007-11-17 23:14:06 +0000 |
commit | 30baf38e0e487eb5731da0367e9b5467548b831c (patch) | |
tree | 4450cbfcde7bb13f00fb0ab79f3b96d3d3b9c842 /usr.sbin/ppp/chap.h | |
parent | ee4b9334d134a020a5a2e551d381f0c13625afb8 (diff) | |
download | FreeBSD-src-30baf38e0e487eb5731da0367e9b5467548b831c.zip FreeBSD-src-30baf38e0e487eb5731da0367e9b5467548b831c.tar.gz |
Use uintptr_t to cast a pointer to an integer to avoid compiler warnings
on processors where sizeof(void *) > sizeof(int).
Diffstat (limited to 'usr.sbin/ppp/chap.h')
-rw-r--r-- | usr.sbin/ppp/chap.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/ppp/chap.h b/usr.sbin/ppp/chap.h index 617555d..08c6865 100644 --- a/usr.sbin/ppp/chap.h +++ b/usr.sbin/ppp/chap.h @@ -61,7 +61,7 @@ struct chap { #define descriptor2chap(d) \ ((d)->type == CHAP_DESCRIPTOR ? (struct chap *)(d) : NULL) #define auth2chap(a) \ - ((struct chap *)((char *)a - (int)&((struct chap *)0)->auth)) + ((struct chap *)((char *)a - (uintptr_t)&((struct chap *)0)->auth)) struct MSCHAPv2_resp { /* rfc2759 */ char PeerChallenge[16]; |