diff options
author | brian <brian@cvs.openbsd.org> | 1998-06-26 19:07:15 +0000 |
---|---|---|
committer | brian <brian@cvs.openbsd.org> | 1998-06-26 19:07:15 +0000 |
commit | e2ef23fba0b1b38e6b15555bb4241c534b26b4e2 (patch) | |
tree | 9824a2484eafec382fa512d6ee8f0b3e1b8d0f8b /usr.sbin/ppp | |
parent | 60eaf80000f30646f39179db26a5c293c78a74b2 (diff) |
Don't depend on sizeof(u_long) == 4.
Pointed out by: Theo
Diffstat (limited to 'usr.sbin/ppp')
-rw-r--r-- | usr.sbin/ppp/lqr.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/ppp/lqr.c b/usr.sbin/ppp/lqr.c index 4ddbec61d69..2d663cbcc02 100644 --- a/usr.sbin/ppp/lqr.c +++ b/usr.sbin/ppp/lqr.c @@ -17,7 +17,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: lqr.c,v 1.5 1998/03/13 00:56:24 brian Exp $ + * $Id: lqr.c,v 1.6 1998/06/26 19:07:14 brian Exp $ * * o LQR based on RFC1333 * @@ -49,7 +49,7 @@ struct lqrsave HisLqrSave; static struct pppTimer LqrTimer; -static u_long lastpeerin = (u_long) - 1; +static u_int32_t lastpeerin = (u_int32_t) - 1; static int lqmmethod; static u_int32_t echoseq; @@ -103,11 +103,11 @@ RecvEchoLqr(struct mbuf * bp) void LqrChangeOrder(struct lqrdata * src, struct lqrdata * dst) { - u_long *sp, *dp; + u_int32_t *sp, *dp; int n; - sp = (u_long *) src; - dp = (u_long *) dst; + sp = (u_int32_t *) src; + dp = (u_int32_t *) dst; for (n = 0; n < sizeof(struct lqrdata) / sizeof(u_int32_t); n++) *dp++ = ntohl(*sp++); } |