From 192098126ca421fb4ebecae10698bb6298697e08 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Wed, 4 Feb 2004 10:24:12 +0000 Subject: Use a static const char array for static strings --- ldso/ldso/dl-elf.c | 4 ++-- 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 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; -- cgit v1.2.3