diff options
author | Mike Frysinger <vapier@gentoo.org> | 2011-11-27 04:10:03 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2011-11-27 04:33:03 -0500 |
commit | 0405cb8f5b647fadf61f7539828ef88a883223e2 (patch) | |
tree | f799c19215d15fd1ce8977135c4c18a35fae15ff /libc | |
parent | 9ca7a065beaee93969b39117a7f6d466ff2fb171 (diff) |
make ARRAY_SIZE commonly available internally
Some places have opencoded the ARRAY_SIZE macro, so move it to a global
internal location so other places can leverage it.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'libc')
-rw-r--r-- | libc/inet/resolv.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/libc/inet/resolv.c b/libc/inet/resolv.c index 1155850bf..a730584ee 100644 --- a/libc/inet/resolv.c +++ b/libc/inet/resolv.c @@ -352,9 +352,6 @@ Domain name in a message can be represented as either: #define DPRINTF(X,args...) #endif -#undef ARRAY_SIZE -#define ARRAY_SIZE(v) (sizeof(v) / sizeof((v)[0])) - /* Make sure the incoming char * buffer is aligned enough to handle our random * structures. This define is the same as we use for malloc alignment (which * has same requirements). The offset is the number of bytes we need to adjust |