Module Name: src
Committed By: is
Date: Sat Apr 11 08:11:58 UTC 2020
Modified Files:
src/sys/net [is-mlppp]: if_spppsubr.c
Log Message:
macro error
To generate a diff of this commit:
cvs rdiff -u -r1.187.2.7 -r1.187.2.8 src/sys/net/if_spppsubr.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/net/if_spppsubr.c
diff -u src/sys/net/if_spppsubr.c:1.187.2.7 src/sys/net/if_spppsubr.c:1.187.2.8
--- src/sys/net/if_spppsubr.c:1.187.2.7 Sat Apr 11 07:38:00 2020
+++ src/sys/net/if_spppsubr.c Sat Apr 11 08:11:58 2020
@@ -1,4 +1,4 @@
-/* $NetBSD: if_spppsubr.c,v 1.187.2.7 2020/04/11 07:38:00 is Exp $ */
+/* $NetBSD: if_spppsubr.c,v 1.187.2.8 2020/04/11 08:11:58 is Exp $ */
/*
* Synchronous PPP/Cisco link level subroutines.
@@ -41,7 +41,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_spppsubr.c,v 1.187.2.7 2020/04/11 07:38:00 is Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_spppsubr.c,v 1.187.2.8 2020/04/11 08:11:58 is Exp $");
#if defined(_KERNEL_OPT)
#include "opt_inet.h"
@@ -93,7 +93,7 @@ __KERNEL_RCSID(0, "$NetBSD: if_spppsubr.
#include <net/if_spppvar.h>
#ifndef _NET_IF_STATS_H_
-#define if_statadd(ifp,member,amount) do { (ifp)->(member)+=(amount); } while (0)
+#define if_statadd(ifp,member,amount) do { (ifp)->member+=(amount); } while (0)
#define if_statadd2(ifp,m1,a1,m2,a2) do { if_statadd(ifp,m1,a1); if_statadd(ifp,m2,a2);} while(0)
#define if_statinc(ifp,member) if_statadd(ifp,member,1)
#endif