diff options
author | phk <phk@FreeBSD.org> | 2002-12-17 19:13:03 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2002-12-17 19:13:03 +0000 |
commit | 7e42ab358e51ddbfce4e5182a6039af428d97b9d (patch) | |
tree | 49942a1ecc4e777fbcf293e03c2762de0a6b3fc3 /sys | |
parent | 3a97bafeebc27b3d3b0274ce6544ba332608c4cb (diff) | |
download | FreeBSD-src-7e42ab358e51ddbfce4e5182a6039af428d97b9d.zip FreeBSD-src-7e42ab358e51ddbfce4e5182a6039af428d97b9d.tar.gz |
Don't cast a pointer to (intptr_t) and then on to (int) when we cannot
be sure that (int) is large enough. Instead cast only to (intptr_t) and
cast the switch/case values to (intptr_t) as well.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/kern_sig.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/kern_sig.c b/sys/kern/kern_sig.c index 3503609..a6ecbf8 100644 --- a/sys/kern/kern_sig.c +++ b/sys/kern/kern_sig.c @@ -1749,9 +1749,9 @@ issignal(td) * Return the signal's number, or fall through * to clear it from the pending mask. */ - switch ((int)(intptr_t)p->p_sigacts->ps_sigact[_SIG_IDX(sig)]) { + switch ((intptr_t)p->p_sigacts->ps_sigact[_SIG_IDX(sig)]) { - case (int)SIG_DFL: + case (intptr_t)SIG_DFL: /* * Don't take default actions on system processes. */ @@ -1810,7 +1810,7 @@ issignal(td) return (sig); /*NOTREACHED*/ - case (int)SIG_IGN: + case (intptr_t)SIG_IGN: /* * Masking above should prevent us ever trying * to take action on an ignored signal other |