diff options
author | brian <brian@cvs.openbsd.org> | 1997-12-24 09:30:54 +0000 |
---|---|---|
committer | brian <brian@cvs.openbsd.org> | 1997-12-24 09:30:54 +0000 |
commit | 680c56f9b0e96bdf2645460ef3e71d6ec165ad9a (patch) | |
tree | af433d7193d7f057336d40f4866f865a81daca1a /usr.sbin/ppp/hdlc.c | |
parent | ee509eb41ffd3386cd990df961c005dd18d3d418 (diff) |
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/hdlc.c')
-rw-r--r-- | usr.sbin/ppp/hdlc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/ppp/hdlc.c b/usr.sbin/ppp/hdlc.c index ea38d9dfbef..16477ffbe25 100644 --- a/usr.sbin/ppp/hdlc.c +++ b/usr.sbin/ppp/hdlc.c @@ -17,7 +17,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: hdlc.c,v 1.3 1997/12/06 12:09:08 brian Exp $ + * $Id: hdlc.c,v 1.4 1997/12/24 09:30:32 brian Exp $ * * TODO: */ @@ -355,7 +355,7 @@ static struct { { 0xc481, 0xc481, "Proprietary Node ID Authentication Protocol" } }; -#define NPROTOCOLS (sizeof(protocols)/sizeof(protocols[0])) +#define NPROTOCOLS (sizeof protocols/sizeof protocols[0]) static const char * Protocol2Nam(u_short proto) @@ -477,7 +477,7 @@ HdlcErrorCheck() struct hdlcstat *hp = &HdlcStat; struct hdlcstat *op = &laststat; - if (memcmp(hp, op, sizeof(laststat))) { + if (memcmp(hp, op, sizeof laststat)) { LogPrintf(LogPHASE, "HDLC errors -> FCS: %u ADDR: %u COMD: %u PROTO: %u\n", hp->badfcs - op->badfcs, hp->badaddr - op->badaddr, hp->badcommand - op->badcommand, hp->unknownproto - op->unknownproto); |