summaryrefslogtreecommitdiff
path: root/ldso
diff options
context:
space:
mode:
authorTobias Anderberg <tobias.anderberg@axis.com>2003-09-19 12:11:14 +0000
committerTobias Anderberg <tobias.anderberg@axis.com>2003-09-19 12:11:14 +0000
commita63a0cd9bf4c20f80a140e38c39d35bbc825789a (patch)
tree1955cbdeaf68a14ee8aaf110d8ebb709989dc590 /ldso
parent82eee8d2310f26182c735fc109390ef47835df3e (diff)
Initialize strings as pointers instead of arrays.
Diffstat (limited to 'ldso')
-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 2dad09d6d..1e7313311 100644
--- a/ldso/ldso/dl-elf.c
+++ b/ldso/ldso/dl-elf.c
@@ -223,8 +223,8 @@ struct elf_resolve *_dl_load_shared_library(int secure, struct dyn_elf **rpnt,
const char *pnt, *pnt1;
struct elf_resolve *tpnt1;
const char *libname;
- 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";
_dl_internal_error_number = 0;
libname = full_libname;
diff --git a/ldso/ldso/readelflib1.c b/ldso/ldso/readelflib1.c
index 2dad09d6d..1e7313311 100644
--- a/ldso/ldso/readelflib1.c
+++ b/ldso/ldso/readelflib1.c
@@ -223,8 +223,8 @@ struct elf_resolve *_dl_load_shared_library(int secure, struct dyn_elf **rpnt,
const char *pnt, *pnt1;
struct elf_resolve *tpnt1;
const char *libname;
- 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";
_dl_internal_error_number = 0;
libname = full_libname;