[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=95fa074d64848a0e4db471d6546b91ad60048d52
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/master


gcc-4.4 barks about that.

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

diff --git a/utils/ldconfig.c b/utils/ldconfig.c
index 3bd7cee..505316b 100644
--- a/utils/ldconfig.c
+++ b/utils/ldconfig.c
@@ -127,14 +127,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