summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2004-02-04 10:24:12 +0000
committerEric Andersen <andersen@codepoet.org>2004-02-04 10:24:12 +0000
commit192098126ca421fb4ebecae10698bb6298697e08 (patch)
tree616b135408a4e4c385b65745069fe4ef5a72d8be
parent38583d5986ab32a60f9a045f59e7f1eeb38bf92d (diff)
Use a static const char array for static strings
-rw-r--r--ldso/ldso/dl-elf.c4
-rw-r--r--ldso/ldso/readelflib1.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/ldso/ldso/dl-elf.c b/ldso/ldso/dl-elf.c
index 4324aed01..840a630af 100644
--- a/ldso/ldso/dl-elf.c
+++ b/ldso/ldso/dl-elf.c
@@ -171,8 +171,8 @@ struct elf_resolve *_dl_check_if_named_library_is_loaded(const char *full_libnam
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;
diff --git a/ldso/ldso/readelflib1.c b/ldso/ldso/readelflib1.c
index 4324aed01..840a630af 100644
--- a/ldso/ldso/readelflib1.c
+++ b/ldso/ldso/readelflib1.c
@@ -171,8 +171,8 @@ struct elf_resolve *_dl_check_if_named_library_is_loaded(const char *full_libnam
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;