diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-06-25 14:55:35 +0400 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-06-25 14:55:35 +0400 |
commit | 80b8b39899a09c7516920cda5fd343b3086d4824 (patch) | |
tree | aa9903fd6b64d19c5f640fa302272d85c92b204e /include | |
parent | 1399282b47bb218132a554cbe5b2b0ce4dcc055f (diff) |
Consolidate ARRAY_SIZE macro; remove one unneeded global var (walter harms <wharms@bfs.de>)
Diffstat (limited to 'include')
-rw-r--r-- | include/libbb.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/libbb.h b/include/libbb.h index b7b0657b6..3cdf28fab 100644 --- a/include/libbb.h +++ b/include/libbb.h @@ -1071,4 +1071,7 @@ extern const char bb_default_login_shell[]; #include <dmalloc.h> #endif + +#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) + #endif /* __LIBBUSYBOX_H__ */ |