about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2013-07-24 23:17:21 -0400
committerRich Felker <dalias@aerifal.cx>2013-07-24 23:17:21 -0400
commita926fe26c126a8c4a2a4211321459a68675d9dcd (patch)
tree75539faaa9170e2073dcb4948830038a0f2260d6
parent3d4583c3fba8989a596506619277ecd68768d9ab (diff)
downloadmusl-a926fe26c126a8c4a2a4211321459a68675d9dcd.tar.gz
musl-a926fe26c126a8c4a2a4211321459a68675d9dcd.tar.xz
musl-a926fe26c126a8c4a2a4211321459a68675d9dcd.zip
fix incorrect type for new si_call_addr in siginfo_t
apparently the original kernel commit's i386 version of siginfo.h
defined this field as unsigned int, but the asm-generic file always
had void *. unsigned int is obviously not a suitable type for an
address, in a non-arch-specific file, and glibc also has void * here,
so I think void * is the right type for it.

also fix redundant type specifiers.
-rw-r--r--include/signal.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/signal.h b/include/signal.h
index 2c3602df..e65a8065 100644
--- a/include/signal.h
+++ b/include/signal.h
@@ -108,16 +108,16 @@ typedef struct {
 		} __sigchld;
 		struct {
 			void *si_addr;
-			short int si_addr_lsb;
+			short si_addr_lsb;
 		} __sigfault;
 		struct {
 			long si_band;
 			int si_fd;
 		} __sigpoll;
 		struct {
-			unsigned int si_call_addr;
+			void *si_call_addr;
 			int si_syscall;
-			unsigned int si_arch;
+			unsigned si_arch;
 		} __sigsys;
 	} __si_fields;
 } siginfo_t;