diff options
author | brian <brian@cvs.openbsd.org> | 1998-01-11 17:54:50 +0000 |
---|---|---|
committer | brian <brian@cvs.openbsd.org> | 1998-01-11 17:54:50 +0000 |
commit | 53969a981c9f4a37e745d6c67b631332ca86ba42 (patch) | |
tree | 786ec3c79ac30dc13c4771327551dc3aca2cad3b /usr.sbin/ppp/vjcomp.c | |
parent | d040fadb877d73edda627576dfee73de0ed333a0 (diff) |
Make things work when sizeof(long) != 32 (hopefully)
Diffstat (limited to 'usr.sbin/ppp/vjcomp.c')
-rw-r--r-- | usr.sbin/ppp/vjcomp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/ppp/vjcomp.c b/usr.sbin/ppp/vjcomp.c index 872ba7a69bb..8e3c4830cd7 100644 --- a/usr.sbin/ppp/vjcomp.c +++ b/usr.sbin/ppp/vjcomp.c @@ -17,7 +17,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: vjcomp.c,v 1.2 1997/12/06 12:09:06 brian Exp $ + * $Id: vjcomp.c,v 1.3 1998/01/11 17:54:49 brian Exp $ * * TODO: */ @@ -155,11 +155,11 @@ VjCompInput(struct mbuf * bp, int proto) } const char * -vj2asc(u_long val) +vj2asc(u_int32_t val) { static char asc[50]; - sprintf(asc, "%ld VJ slots %s slot compression", - ((val>>8)&15)+1, val & 1 ? "with" : "without"); + sprintf(asc, "%d VJ slots %s slot compression", + (int)((val>>8)&15)+1, val & 1 ? "with" : "without"); return asc; } |