summaryrefslogtreecommitdiff
path: root/easytool/utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'easytool/utils.h')
-rw-r--r--easytool/utils.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/easytool/utils.h b/easytool/utils.h
index ee446cd..0ff0ad7 100644
--- a/easytool/utils.h
+++ b/easytool/utils.h
@@ -1,6 +1,8 @@
#ifndef UTILS_H
#define UTILS_H
+#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
+
struct value_string {
unsigned int value;
const char *str;
personal git repositories of Harald Welte. Your mileage may vary