Fix MIPS sa_flags type (bug 17781) [committed]

Message ID alpine.DEB.2.10.1501021832330.25454@digraph.polyomino.org.uk
State Committed
Headers

Commit Message

Joseph Myers Jan. 2, 2015, 6:32 p.m. UTC
  sysdeps/unix/sysv/linux/mips/bits/sigaction.h gives sa_flags type
unsigned int, but POSIX says it should be signed int.  This patch
gives it the correct type (the layout is unchanged, so there are no
ABI issues involved).

Committed.

2015-01-02  Joseph Myers  <joseph@codesourcery.com>

	[BZ #17781]
	* sysdeps/unix/sysv/linux/mips/bits/sigaction.h
	(struct sigaction): Change type of sa_flags field to int.
  

Patch

diff --git a/sysdeps/unix/sysv/linux/mips/bits/sigaction.h b/sysdeps/unix/sysv/linux/mips/bits/sigaction.h
index e3cc02e..5263ab2 100644
--- a/sysdeps/unix/sysv/linux/mips/bits/sigaction.h
+++ b/sysdeps/unix/sysv/linux/mips/bits/sigaction.h
@@ -24,7 +24,7 @@ 
 struct sigaction
   {
     /* Special flags.  */
-    unsigned int sa_flags;
+    int sa_flags;
 
     /* Signal handler.  */
 #ifdef __USE_POSIX199309