aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>1994-09-20 05:42:46 +0000
committerBruce Evans <bde@FreeBSD.org>1994-09-20 05:42:46 +0000
commit0b53fbe8da42bf18aa33c5e5b70bc1d2c763d16e (patch)
treefae50dd569af6437e78dda98ecbc62c3cc80ca5f /sys
parent254b131faa0b06e334f0ad706170c94a1136c849 (diff)
downloadsrc-0b53fbe8da42bf18aa33c5e5b70bc1d2c763d16e.tar.gz
src-0b53fbe8da42bf18aa33c5e5b70bc1d2c763d16e.zip
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.
Notes
Notes: svn path=/head/; revision=2921
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 c076dcd67cfc..5500a4ac9d96 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