diff options
author | glebius <glebius@FreeBSD.org> | 2014-03-04 14:23:58 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2014-03-04 14:23:58 +0000 |
commit | d06eb27738c9003bba69ae1f38b8b5addeb568dd (patch) | |
tree | b2fd45783887b4a8f7163ea93034ebe1d7c75449 /sys | |
parent | 322a3c94d3d120bb067e52cd49285f1c90c17e55 (diff) | |
download | FreeBSD-src-d06eb27738c9003bba69ae1f38b8b5addeb568dd.zip FreeBSD-src-d06eb27738c9003bba69ae1f38b8b5addeb568dd.tar.gz |
Merge 261595: simplify the SYSCTL_COUNTER_U64() macro.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/sys/sysctl.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/sys/sysctl.h b/sys/sys/sysctl.h index 2a8a24a..45ae3a2 100644 --- a/sys/sys/sysctl.h +++ b/sys/sys/sysctl.h @@ -393,11 +393,11 @@ SYSCTL_ALLOWED_TYPES(UINT64, uint64_t *a; unsigned long long *b; ); sysctl_handle_64, "QU", __DESCR(descr)) /* Oid for a 64-bit unsigned counter(9). The pointer must be non NULL. */ -#define SYSCTL_COUNTER_U64(parent, nbr, name, access, ptr, val, descr) \ +#define SYSCTL_COUNTER_U64(parent, nbr, name, access, ptr, descr) \ SYSCTL_ASSERT_TYPE(UINT64, ptr, parent, name); \ SYSCTL_OID(parent, nbr, name, \ CTLTYPE_U64 | CTLFLAG_MPSAFE | (access), \ - ptr, val, sysctl_handle_counter_u64, "QU", descr) + ptr, 0, sysctl_handle_counter_u64, "QU", descr) #define SYSCTL_ADD_COUNTER_U64(ctx, parent, nbr, name, access, ptr, descr)\ sysctl_add_oid(ctx, parent, nbr, name, \ |