diff options
author | Tobias Anderberg <tobias.anderberg@axis.com> | 2003-09-19 12:11:14 +0000 |
---|---|---|
committer | Tobias Anderberg <tobias.anderberg@axis.com> | 2003-09-19 12:11:14 +0000 |
commit | a63a0cd9bf4c20f80a140e38c39d35bbc825789a (patch) | |
tree | 1955cbdeaf68a14ee8aaf110d8ebb709989dc590 /ldso | |
parent | 82eee8d2310f26182c735fc109390ef47835df3e (diff) |
Initialize strings as pointers instead of arrays.
Diffstat (limited to 'ldso')
-rw-r--r-- | ldso/ldso/dl-elf.c | 4 | ||||
-rw-r--r-- | ldso/ldso/readelflib1.c | 4 |
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; |