From 63a463b149753764549a935092ecceec81e666e5 Mon Sep 17 00:00:00 2001 From: Jim Kingdon Date: Fri, 3 May 1991 06:02:52 +0000 Subject: [PATCH] * signame.c: Cast const char* to char* when assigning to sys_siglist. --- gdb/signame.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gdb/signame.c b/gdb/signame.c index 909c983ed9d..5d8ae4d35cb 100755 --- a/gdb/signame.c +++ b/gdb/signame.c @@ -35,6 +35,8 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ static CONST char undoc[] = "unknown signal"; +/* We'd like to make this const char*[], but whoever's using it might + want to assign from it to a char*. */ char *sys_siglist[NSIG]; #endif /* SYS_SIGLIST_MISSING */ @@ -57,7 +59,7 @@ init_sig (number, abbrev, name) CONST char *name; { #if SYS_SIGLIST_MISSING - sys_siglist[number] = name; + sys_siglist[number] = (char *) name; #endif sig_table[sig_table_nelts].number = number; sig_table[sig_table_nelts++].abbrev = abbrev; @@ -70,7 +72,7 @@ static void init_sigs () /* Initialize signal names. */ for (i = 0; i < NSIG; i++) - sys_siglist[i] = undoc; + sys_siglist[i] = (char *) undoc; #endif /* SYS_SIGLIST_MISSING */ /* Initialize signal names. */ -- 2.30.2