diff options
author | brian <brian@cvs.openbsd.org> | 1998-06-27 12:06:50 +0000 |
---|---|---|
committer | brian <brian@cvs.openbsd.org> | 1998-06-27 12:06:50 +0000 |
commit | e9b7cb7902cc8bb5ac9c456c8519103d3e494bcb (patch) | |
tree | 0661032b8d4df3b135c4eb4c922e0392967055ac /usr.sbin/ppp/slcompress.c | |
parent | 5b7d1fce1b5e476e4e95011e96c502dea5939af2 (diff) |
Fix ``sizeof(u_long) == 4'' errors.
Suggested by: theo
Diffstat (limited to 'usr.sbin/ppp/slcompress.c')
-rw-r--r-- | usr.sbin/ppp/slcompress.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/ppp/slcompress.c b/usr.sbin/ppp/slcompress.c index 29a71658694..1715d8bde64 100644 --- a/usr.sbin/ppp/slcompress.c +++ b/usr.sbin/ppp/slcompress.c @@ -17,7 +17,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: slcompress.c,v 1.2 1997/12/24 09:30:51 brian Exp $ + * $Id: slcompress.c,v 1.3 1998/06/27 12:06:49 brian Exp $ * * Van Jacobson (van@helios.ee.lbl.gov), Dec 31, 1989: * - Initial distribution. @@ -74,7 +74,7 @@ sl_compress_init(struct slcompress * comp, int max_state) /* ENCODE encodes a number that is known to be non-zero. ENCODEZ - * checks for zero (since zero has to be encoded in the long, 3 byte + * checks for zero (since zero has to be encoded in the 32-bit, 3 byte * form). */ #define ENCODE(n) { \ @@ -103,7 +103,7 @@ sl_compress_init(struct slcompress * comp, int max_state) (f) = htonl(ntohl(f) + ((cp[1] << 8) | cp[2])); \ cp += 3; \ } else { \ - (f) = htonl(ntohl(f) + (u_long)*cp++); \ + (f) = htonl(ntohl(f) + (u_int32_t)*cp++); \ } \ } @@ -112,7 +112,7 @@ sl_compress_init(struct slcompress * comp, int max_state) (f) = htons(ntohs(f) + ((cp[1] << 8) | cp[2])); \ cp += 3; \ } else { \ - (f) = htons(ntohs(f) + (u_long)*cp++); \ + (f) = htons(ntohs(f) + (u_int32_t)*cp++); \ } \ } @@ -121,7 +121,7 @@ sl_compress_init(struct slcompress * comp, int max_state) (f) = htons((cp[1] << 8) | cp[2]); \ cp += 3; \ } else { \ - (f) = htons((u_long)*cp++); \ + (f) = htons((u_int32_t)*cp++); \ } \ } |