diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2012-04-18 00:06:52 +0200 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2012-04-18 00:06:52 +0200 |
commit | c3db6430ebd9530859af7ffac8f1181251a00308 (patch) | |
tree | ce6db3c1d803816ae10ad382b195ac01e82186c9 /utils/ldd.c | |
parent | 15d28c8ce0a7f2d59edd7f068e931041d68511e2 (diff) |
ldd: silence warnings
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'utils/ldd.c')
-rw-r--r-- | utils/ldd.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/utils/ldd.c b/utils/ldd.c index c56ddc8d5..38138342c 100644 --- a/utils/ldd.c +++ b/utils/ldd.c @@ -127,7 +127,6 @@ #define ELFDATAM ELFDATA2MSB #endif -#define ARRAY_SIZE(v) (sizeof(v) / sizeof(*v)) #define TRUSTED_LDSO UCLIBC_RUNTIME_PREFIX "lib/" UCLIBC_LDSO struct library { @@ -701,9 +700,9 @@ foo: "LD_TRACE_LOADED_OBJECTS=1", NULL }; +#ifdef __LDSO_STANDALONE_SUPPORT__ char * lib_path = getenv("LD_LIBRARY_PATH"); -#ifdef __LDSO_STANDALONE_SUPPORT__ /* The 'extended' environment inclusing the LD_LIBRARY_PATH */ static char *ext_environment[ARRAY_SIZE(environment) + 1]; char **envp = (char **) environment; |