From a63a0cd9bf4c20f80a140e38c39d35bbc825789a Mon Sep 17 00:00:00 2001 From: Tobias Anderberg Date: Fri, 19 Sep 2003 12:11:14 +0000 Subject: Initialize strings as pointers instead of arrays. --- ldso/ldso/dl-elf.c | 4 ++-- ldso/ldso/readelflib1.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'ldso') 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; -- cgit v1.2.3