aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey V. Elsukov <ae@FreeBSD.org>2013-04-12 16:29:15 +0000
committerAndrey V. Elsukov <ae@FreeBSD.org>2013-04-12 16:29:15 +0000
commite3389419ef6ea88fed0e4bf0c11d9cb453ee303e (patch)
tree61a4504be9108cf031853a314f23f83eda3213a2
parent8ed98609141e56dd738ea333279beec9f961dca8 (diff)
downloadsrc-e3389419ef6ea88fed0e4bf0c11d9cb453ee303e.tar.gz
src-e3389419ef6ea88fed0e4bf0c11d9cb453ee303e.zip
Reflect removing of the counter_u64_subtract() function in the macro.
Notes
Notes: svn path=/head/; revision=249411
-rw-r--r--sys/netinet/ip_var.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/ip_var.h b/sys/netinet/ip_var.h
index def3378b5f2b..7f5181e66e28 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.