diff options
author | Julian Andres Klode <julian.klode@canonical.com> | 2020-01-07 22:37:36 +0100 |
---|---|---|
committer | Julian Andres Klode <julian.klode@canonical.com> | 2020-01-07 22:51:41 +0100 |
commit | df4b92bd1df204e7fb0d22e73e143d205d74aea6 (patch) | |
tree | 36c2ddc9d4b0d1457ebcd8cb98623c53abd1c9c7 /apt-pkg/contrib | |
parent | 1b3e0a6a4bf673bd7d1da4a481eeb0a436430be8 (diff) |
Rename _count() macro to APT_ARRAY_SIZE()
Diffstat (limited to 'apt-pkg/contrib')
-rw-r--r-- | apt-pkg/contrib/macros.h | 2 |
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)) |