[git commit] Don't shadow the err() function with a local var

Ron ron at debian.org
Fri Jun 26 19:14:23 UTC 2009


commit: http://git.uclibc.org/uClibc/commit/?id=e04942f86c38f31f934632fbb7976a56dd94eb50
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/nptl


gcc-4.4 barks about that.

Signed-off-by: Ron Lee <ron at debian.org>
Signed-off-by: Mike Frysinger <vapier at gentoo.org>
Signed-off-by: Austin Foxley <austinf at cetoncorp.com>
---
 utils/ldconfig.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/utils/ldconfig.c b/utils/ldconfig.c
index d2f47f2..c30416b 100644
--- a/utils/ldconfig.c
+++ b/utils/ldconfig.c
@@ -154,14 +154,14 @@ static void attribute_noreturn err(int errnum, const char *s, ...)
 
 static void vperror_msg(const char *s, va_list p)
 {
-	int err = errno;
+	int e = errno;
 
 	if (s == 0)
 		s = "";
 	verror_msg(s, p);
 	if (*s)
 		s = ": ";
-	fprintf(stderr, "%s%s\n", s, strerror(err));
+	fprintf(stderr, "%s%s\n", s, strerror(e));
 }
 
 static void warn(const char *s, ...)
-- 
1.6.3.3


More information about the uClibc-cvs mailing list