start: declare int array const

parent ec1dc633
...@@ -301,9 +301,10 @@ restart: ...@@ -301,9 +301,10 @@ restart:
static int setup_signal_fd(sigset_t *oldmask) static int setup_signal_fd(sigset_t *oldmask)
{ {
int ret, sig; int ret;
int sig;
sigset_t mask; sigset_t mask;
int signals[] = {SIGBUS, SIGILL, SIGSEGV, SIGWINCH}; const int signals[] = {SIGBUS, SIGILL, SIGSEGV, SIGWINCH};
/* Block everything except serious error signals. */ /* Block everything except serious error signals. */
ret = sigfillset(&mask); ret = sigfillset(&mask);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment