mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Don't use SIG_DFL or SIG_IGN for case label expressions. ANSI requires
such expressions to have integral type. "gcc -ansi -pedantic -W..." fails to diagnose this constraint error.
This commit is contained in:
parent
254b131faa
commit
0b53fbe8da
1 changed files with 3 additions and 3 deletions
|
|
@ -36,7 +36,7 @@
|
|||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)kern_sig.c 8.7 (Berkeley) 4/18/94
|
||||
* $Id$
|
||||
* $Id: kern_sig.c,v 1.3 1994/08/02 07:42:13 davidg Exp $
|
||||
*/
|
||||
|
||||
#define SIGPROP /* include signal properties table */
|
||||
|
|
@ -952,7 +952,7 @@ issignal(p)
|
|||
*/
|
||||
switch ((int)p->p_sigacts->ps_sigact[signum]) {
|
||||
|
||||
case SIG_DFL:
|
||||
case (int)SIG_DFL:
|
||||
/*
|
||||
* Don't take default actions on system processes.
|
||||
*/
|
||||
|
|
@ -995,7 +995,7 @@ issignal(p)
|
|||
return (signum);
|
||||
/*NOTREACHED*/
|
||||
|
||||
case SIG_IGN:
|
||||
case (int)SIG_IGN:
|
||||
/*
|
||||
* Masking above should prevent us ever trying
|
||||
* to take action on an ignored signal other
|
||||
|
|
|
|||
Loading…
Reference in a new issue