This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Avoid duplicate case statement


I'm submitting the below as obvious so that Cygwin builds again.

cgf

2010-05-18  Christopher Faylor  <me+cygwin@cgf.cx>

	* libc/string/strsignal.c (strsignal): Avoid duplicate case statement
	where SIGPWR == SIGLOST.

Index: libc/string/strsignal.c
===================================================================
RCS file: /cvs/uberbaum/newlib/libc/string/strsignal.c,v
retrieving revision 1.1
diff -d -u -p -r1.1 strsignal.c
--- libc/string/strsignal.c	11 May 2010 20:27:20 -0000	1.1
+++ libc/string/strsignal.c	18 May 2010 14:50:47 -0000
@@ -242,7 +242,7 @@ _DEFUN (strsignal, (signal),
       buffer = "Profiling timer expired";
       break;
 #endif
-#ifdef SIGLOST
+#if defined(SIGLOST) && SIGLOST != SIGPWR
     case SIGLOST:
       buffer = "Resource lost";
       break;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]