summaryrefslogtreecommitdiff
path: root/usr.sbin/ppp/hdlc.c
diff options
context:
space:
mode:
authorBrian Somers <brian@FreeBSD.org>1997-12-24 09:29:17 +0000
committerBrian Somers <brian@FreeBSD.org>1997-12-24 09:29:17 +0000
commit70ee81ff6ba03e882c77fba9357f803c13982d31 (patch)
tree1634b1e1f6b1899192dae079bbf6eeccc9d4dbd5 /usr.sbin/ppp/hdlc.c
parentf9925914f1371e9814b482f32c58a43266f413a9 (diff)
downloadsrc-test2-70ee81ff6ba03e882c77fba9357f803c13982d31.tar.gz
src-test2-70ee81ff6ba03e882c77fba9357f803c13982d31.zip
Notes
Diffstat (limited to 'usr.sbin/ppp/hdlc.c')
-rw-r--r--usr.sbin/ppp/hdlc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/ppp/hdlc.c b/usr.sbin/ppp/hdlc.c
index 31b521a4e72d..5a05f7633c94 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.23 1997/12/03 10:23:47 brian Exp $
+ * $Id: hdlc.c,v 1.24 1997/12/04 18:49:26 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);