summaryrefslogtreecommitdiffstats
path: root/src/common/util-common.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/util-common.h')
-rw-r--r--src/common/util-common.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/util-common.h b/src/common/util-common.h
index af2ebdaa..f604e79a 100644
--- a/src/common/util-common.h
+++ b/src/common/util-common.h
@@ -36,6 +36,8 @@ size_t strtrim(char *str);
char *strndup(const char *s, size_t n);
#endif
+#define ARRAYSIZE(a) (sizeof (a) / sizeof (a[0]))
+
#endif /* _PM_UTIL_COMMON_H */
/* vim: set noet: */