[uClibc-cvs] uClibc/ldso/ldso readelflib1.c,1.57,1.58

Erik Andersen andersen at uclibc.org
Wed Feb 4 10:24:15 UTC 2004


Update of /var/cvs/uClibc/ldso/ldso
In directory nail:/tmp/cvs-serv16513

Modified Files:
	readelflib1.c 
Log Message:
Use a static const char array for static strings


Index: readelflib1.c
===================================================================
RCS file: /var/cvs/uClibc/ldso/ldso/readelflib1.c,v
retrieving revision 1.57
retrieving revision 1.58
diff -u -d -r1.57 -r1.58
--- readelflib1.c	29 Jan 2004 12:18:51 -0000	1.57
+++ readelflib1.c	4 Feb 2004 10:24:12 -0000	1.58
@@ -171,8 +171,8 @@
 	const char *pnt, *pnt1;
 	struct elf_resolve *tpnt1;
 	const char *libname, *libname2;
-	static const char *libc = "libc.so.";
-	static const char *aborted_wrong_lib = "%s: aborted attempt to load %s!\n";
+	static const char libc[] = "libc.so.";
+	static const char aborted_wrong_lib[] = "%s: aborted attempt to load %s!\n";
 
 	pnt = libname = full_libname;
 




More information about the uClibc-cvs mailing list