diff options
author | brian <brian@FreeBSD.org> | 1997-12-24 09:29:17 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1997-12-24 09:29:17 +0000 |
commit | 14d342e696e1f58935e230c2b5bda26daa36cda0 (patch) | |
tree | 73e0e9a6ac1b2542326d644b2e9f7611a6f6a810 /usr.sbin/ppp/fsm.c | |
parent | e2cdbfbbb2fff725814c29bd10d948ba15f8240e (diff) | |
download | FreeBSD-src-14d342e696e1f58935e230c2b5bda26daa36cda0.zip FreeBSD-src-14d342e696e1f58935e230c2b5bda26daa36cda0.tar.gz |
Cosmetic (style):
sizeof(var) -> sizeof var
sizeof type -> sizeof(type)
Suggested by: J Wunsch <j@uriah.heep.sax.de>
Diffstat (limited to 'usr.sbin/ppp/fsm.c')
-rw-r--r-- | usr.sbin/ppp/fsm.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/ppp/fsm.c b/usr.sbin/ppp/fsm.c index 6ad03e2..3a949f7 100644 --- a/usr.sbin/ppp/fsm.c +++ b/usr.sbin/ppp/fsm.c @@ -17,7 +17,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: fsm.c,v 1.23 1997/12/03 10:23:46 brian Exp $ + * $Id: fsm.c,v 1.24 1997/12/13 02:37:23 brian Exp $ * * TODO: * o Refer loglevel for log output @@ -345,7 +345,7 @@ FsmRecvConfigReq(struct fsm * fp, struct fsmheader * lhp, struct mbuf * bp) int ackaction = 0; plen = plength(bp); - flen = ntohs(lhp->length) - sizeof(*lhp); + flen = ntohs(lhp->length) - sizeof *lhp; if (plen < flen) { LogPrintf(LogERROR, "FsmRecvConfigReq: plen (%d) < flen (%d)\n", plen, flen); @@ -464,7 +464,7 @@ FsmRecvConfigNak(struct fsm * fp, struct fsmheader * lhp, struct mbuf * bp) int plen, flen; plen = plength(bp); - flen = ntohs(lhp->length) - sizeof(*lhp); + flen = ntohs(lhp->length) - sizeof *lhp; if (plen < flen) { pfree(bp); return; @@ -574,7 +574,7 @@ FsmRecvConfigRej(struct fsm * fp, struct fsmheader * lhp, struct mbuf * bp) int plen, flen; plen = plength(bp); - flen = ntohs(lhp->length) - sizeof(*lhp); + flen = ntohs(lhp->length) - sizeof *lhp; if (plen < flen) { pfree(bp); return; |