diff options
author | brian <brian@FreeBSD.org> | 1998-01-11 17:50:49 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1998-01-11 17:50:49 +0000 |
commit | 425b212bdd92037d4fd4a47c670c5d806cf9e0ab (patch) | |
tree | d7239e66c5418688f977b6602bcdc8958bf8ed97 /usr.sbin/ppp/lqr.c | |
parent | 86a038bcfcbf1e18826c345db5eabf350280087f (diff) | |
download | FreeBSD-src-425b212bdd92037d4fd4a47c670c5d806cf9e0ab.zip FreeBSD-src-425b212bdd92037d4fd4a47c670c5d806cf9e0ab.tar.gz |
Make things work when sizeof(long) != 32 (hopefully)
Diffstat (limited to 'usr.sbin/ppp/lqr.c')
-rw-r--r-- | usr.sbin/ppp/lqr.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/usr.sbin/ppp/lqr.c b/usr.sbin/ppp/lqr.c index bf1bf5d..1ea3ecc 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.19 1997/10/26 01:03:08 brian Exp $ + * $Id: lqr.c,v 1.20 1997/11/22 03:37:37 brian Exp $ * * o LQR based on RFC1333 * @@ -49,14 +49,14 @@ struct pppTimer LqrTimer; static u_long lastpeerin = (u_long) - 1; static int lqmmethod; -static int echoseq; -static int gotseq; +static u_int32_t echoseq; +static u_int32_t gotseq; static int lqrsendcnt; struct echolqr { - u_long magic; - u_long signature; - u_long sequence; + u_int32_t magic; + u_int32_t signature; + u_int32_t sequence; }; #define SIGNATURE 0x594e4f54 @@ -82,7 +82,7 @@ void RecvEchoLqr(struct mbuf * bp) { struct echolqr *lqr; - u_long seq; + u_int32_t seq; if (plength(bp) == sizeof(struct echolqr)) { lqr = (struct echolqr *) MBUF_CTOP(bp); |