diff options
author | Joel Sherrill <joel@rtems.org> | 2017-03-15 12:04:22 -0500 |
---|---|---|
committer | Joel Sherrill <joel@rtems.org> | 2017-03-15 12:04:34 -0500 |
commit | 33c7b2b544a96ee443728f9558ce07a13e05f1e8 (patch) | |
tree | 720ea8eaa4801f526eece69116369ac8bfec4f7d /newlib | |
parent | 6e3a2037ebb47a7a59a14bf2d568456078d7b27a (diff) | |
download | cygnal-33c7b2b544a96ee443728f9558ce07a13e05f1e8.tar.gz cygnal-33c7b2b544a96ee443728f9558ce07a13e05f1e8.tar.bz2 cygnal-33c7b2b544a96ee443728f9558ce07a13e05f1e8.zip |
libc/string/strsignal.c: Use of || not && lead to dead code.
Coverity Id: 175333
Diffstat (limited to 'newlib')
-rw-r--r-- | newlib/libc/string/strsignal.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/newlib/libc/string/strsignal.c b/newlib/libc/string/strsignal.c index 94ae26db1..e32c9a7be 100644 --- a/newlib/libc/string/strsignal.c +++ b/newlib/libc/string/strsignal.c @@ -37,7 +37,7 @@ QUICKREF /* * Written by Joel Sherrill <joel.sherrill@OARcorp.com>. * - * COPYRIGHT (c) 2010. + * COPYRIGHT (c) 2010, 2017. * On-Line Applications Research Corporation (OAR). * * Permission to use, copy, modify, and distribute this software for any @@ -49,8 +49,6 @@ QUICKREF * WARRANTY. IN PARTICULAR, THE AUTHOR MAKES NO REPRESENTATION * OR WARRANTY OF ANY KIND CONCERNING THE MERCHANTABILITY OF THIS * SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR PURPOSE. - * - * $Id$ */ #include <string.h> @@ -72,7 +70,7 @@ _DEFUN (strsignal, (signal), buffer = _REENT_SIGNAL_BUF(ptr); #if defined(SIGRTMIN) && defined(SIGRTMAX) - if ((signal >= SIGRTMIN) || (signal <= SIGRTMAX)) { + if ((signal >= SIGRTMIN) && (signal <= SIGRTMAX)) { siprintf (buffer, "Real-time signal %d", signal - SIGRTMIN); return buffer; } |