diff options
author | Brian Somers <brian@FreeBSD.org> | 1998-04-19 23:09:03 +0000 |
---|---|---|
committer | Brian Somers <brian@FreeBSD.org> | 1998-04-19 23:09:03 +0000 |
commit | fe3125a0c3fafc6542e99a1a4aa1d44787aa1e97 (patch) | |
tree | a487866605615a1435b2b094426e0d24b189aa08 /usr.sbin/ppp/lqr.c | |
parent | c02f3787061a79b503feb50fefc1a6462379bf4c (diff) | |
download | src-fe3125a0c3fafc6542e99a1a4aa1d44787aa1e97.tar.gz src-fe3125a0c3fafc6542e99a1a4aa1d44787aa1e97.zip |
o Use __attribute__ (#ifdef __GNUC__) to type-check
LogPrintf() and prompt_Printf(), and fix the bits
identified as being wrong as a result.
Notes
Notes:
svn path=/cvs2svn/branches/MP/; revision=35317
Diffstat (limited to 'usr.sbin/ppp/lqr.c')
-rw-r--r-- | usr.sbin/ppp/lqr.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.sbin/ppp/lqr.c b/usr.sbin/ppp/lqr.c index 69bf0f68ffba..1461e6961aba 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.22.2.24 1998/04/18 01:01:24 brian Exp $ + * $Id: lqr.c,v 1.22.2.25 1998/04/19 15:24:44 brian Exp $ * * o LQR based on RFC1333 * @@ -92,7 +92,7 @@ RecvEchoLqr(struct fsm *fp, struct mbuf * bp) hdlc->lqm.echo.seq_recv = seq; } else LogPrintf(LogERROR, "RecvEchoLqr: Got sig 0x%08x, expecting 0x%08x !\n", - ntohl(lqr->signature), SIGNATURE); + (unsigned)ntohl(lqr->signature), (unsigned)SIGNATURE); } else LogPrintf(LogERROR, "RecvEchoLqr: Got packet size %d, expecting %d !\n", plength(bp), sizeof(struct echolqr)); @@ -177,7 +177,8 @@ LqrInput(struct physical *physical, struct mbuf *bp) lcp = physical->hdlc.lqm.owner; if (ntohl(lqr->MagicNumber) != physical->hdlc.lqm.owner->his_magic) LogPrintf(LogERROR, "LqrInput: magic %x != expecting %x\n", - ntohl(lqr->MagicNumber), physical->hdlc.lqm.owner->his_magic); + (unsigned)ntohl(lqr->MagicNumber), + physical->hdlc.lqm.owner->his_magic); else { /* * Remember our PeerInLQRs, then convert byte order and save |