summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1994-09-20 05:42:46 +0000
committerbde <bde@FreeBSD.org>1994-09-20 05:42:46 +0000
commit04236ea5927988d237bf4370383fb1a3e761eb00 (patch)
treefae50dd569af6437e78dda98ecbc62c3cc80ca5f /sys
parentc8dd829ea8640adcc3cc5342d8546926abcf23bd (diff)
downloadFreeBSD-src-04236ea5927988d237bf4370383fb1a3e761eb00.zip
FreeBSD-src-04236ea5927988d237bf4370383fb1a3e761eb00.tar.gz
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.
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/kern_sig.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/kern_sig.c b/sys/kern/kern_sig.c
index c076dcd..5500a4a 100644
--- a/sys/kern/kern_sig.c
+++ b/sys/kern/kern_sig.c
@@ -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
OpenPOWER on IntegriCloud