From e3389419ef6ea88fed0e4bf0c11d9cb453ee303e Mon Sep 17 00:00:00 2001 From: "Andrey V. Elsukov" Date: Fri, 12 Apr 2013 16:29:15 +0000 Subject: [PATCH] Reflect removing of the counter_u64_subtract() function in the macro. --- sys/netinet/ip_var.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/netinet/ip_var.h b/sys/netinet/ip_var.h index def3378b5f2..7f5181e66e2 100644 --- a/sys/netinet/ip_var.h +++ b/sys/netinet/ip_var.h @@ -173,9 +173,9 @@ VNET_DECLARE(struct ipstat_p, ipstatp); * stats. */ #define IPSTAT_ADD(name, val) counter_u64_add(V_ipstatp.name, (val)) -#define IPSTAT_SUB(name, val) counter_u64_subtract(V_ipstatp.name, (val)) +#define IPSTAT_SUB(name, val) IPSTAT_ADD(name, -(val)) #define IPSTAT_INC(name) IPSTAT_ADD(name, 1) -#define IPSTAT_DEC(name) IPSTAT_ADD(name, -1) +#define IPSTAT_DEC(name) IPSTAT_SUB(name, 1) /* * Kernel module consumers must use this accessor macro.