summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorae <ae@FreeBSD.org>2013-04-12 16:29:15 +0000
committerae <ae@FreeBSD.org>2013-04-12 16:29:15 +0000
commitd657004b7fd47dc568200472f6e740c0675ad28f (patch)
tree61a4504be9108cf031853a314f23f83eda3213a2
parent80b8b2f7791585982400714f802d5617862e9c68 (diff)
downloadFreeBSD-src-d657004b7fd47dc568200472f6e740c0675ad28f.zip
FreeBSD-src-d657004b7fd47dc568200472f6e740c0675ad28f.tar.gz
Reflect removing of the counter_u64_subtract() function in the macro.
-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 def3378..7f5181e 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.
OpenPOWER on IntegriCloud