diff options
Diffstat (limited to 'src/process.c')
| -rw-r--r-- | src/process.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/process.c b/src/process.c index 6af8974c7a6..8c59f626133 100644 --- a/src/process.c +++ b/src/process.c | |||
| @@ -345,7 +345,8 @@ status_message (status) | |||
| 345 | if (code < NSIG) | 345 | if (code < NSIG) |
| 346 | { | 346 | { |
| 347 | #ifndef VMS | 347 | #ifndef VMS |
| 348 | signame = sys_siglist[code]; | 348 | /* Cast to suppress warning if the table has const char *. */ |
| 349 | signame = (char *) sys_siglist[code]; | ||
| 349 | #else | 350 | #else |
| 350 | signame = sys_errlist[code]; | 351 | signame = sys_errlist[code]; |
| 351 | #endif | 352 | #endif |
| @@ -3107,7 +3108,8 @@ sigchld_handler (signo) | |||
| 3107 | if (code < NSIG) | 3108 | if (code < NSIG) |
| 3108 | { | 3109 | { |
| 3109 | #ifndef VMS | 3110 | #ifndef VMS |
| 3110 | signame = sys_siglist[code]; | 3111 | /* Suppress warning if the table has const char *. */ |
| 3112 | signame = (char *) sys_siglist[code]; | ||
| 3111 | #else | 3113 | #else |
| 3112 | signame = sys_errlist[code]; | 3114 | signame = sys_errlist[code]; |
| 3113 | #endif | 3115 | #endif |