From: Jim Kingdon Date: Fri, 3 May 1991 06:02:52 +0000 (+0000) Subject: * signame.c: Cast const char* to char* when assigning to sys_siglist. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=63a463b149753764549a935092ecceec81e666e5;p=binutils-gdb.git * signame.c: Cast const char* to char* when assigning to sys_siglist. --- 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. */