summaryrefslogtreecommitdiff
path: root/apt-pkg/contrib/macros.h
diff options
context:
space:
mode:
authorJulian Andres Klode <julian.klode@canonical.com>2020-01-07 22:37:36 +0100
committerJulian Andres Klode <julian.klode@canonical.com>2020-01-07 22:51:41 +0100
commitdf4b92bd1df204e7fb0d22e73e143d205d74aea6 (patch)
tree36c2ddc9d4b0d1457ebcd8cb98623c53abd1c9c7 /apt-pkg/contrib/macros.h
parent1b3e0a6a4bf673bd7d1da4a481eeb0a436430be8 (diff)
Rename _count() macro to APT_ARRAY_SIZE()
Diffstat (limited to 'apt-pkg/contrib/macros.h')
-rw-r--r--apt-pkg/contrib/macros.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-pkg/contrib/macros.h b/apt-pkg/contrib/macros.h
index c19cb313d..e914b7298 100644
--- a/apt-pkg/contrib/macros.h
+++ b/apt-pkg/contrib/macros.h
@@ -46,7 +46,7 @@
/* Useful count macro, use on an array of things and it will return the
number of items in the array */
-#define _count(a) (sizeof(a)/sizeof(a[0]))
+#define APT_ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0]))
// Flag Macros
#define FLAG(f) (1L << (f))