[git commit] ldd: silence warnings

Bernhard Reutner-Fischer rep.dot.nop at gmail.com
Tue Apr 17 22:06:52 UTC 2012


commit: http://git.uclibc.org/uClibc/commit/?id=c3db6430ebd9530859af7ffac8f1181251a00308
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/master

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop at gmail.com>
---
 utils/ldd.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/utils/ldd.c b/utils/ldd.c
index c56ddc8..3813834 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;


More information about the uClibc-cvs mailing list