summaryrefslogtreecommitdiff
path: root/include/linux/init_task.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2005-01-20 16:07:57 -0800
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-01-20 16:07:57 -0800
commit439bed8b56fe1a7753fcbb43624802814d99f140 (patch)
tree85e08c10599b26f229f89713160d1934f9c8cea8 /include/linux/init_task.h
parent5efaaaac55cdcd76daecb98421a96cb2d7a25129 (diff)
[PATCH] fix INIT_SIGHAND warning on mips
sa_handler isn't the first member of struct sigaction on mips. Use C99 initializers to avoid a compiler warning. (There don't seem to be more serious problems as mips worked with that warning for ages) Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux/init_task.h')
-rw-r--r--include/linux/init_task.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/linux/init_task.h b/include/linux/init_task.h
index 714a678fc6c4..6498e9da9ce6 100644
--- a/include/linux/init_task.h
+++ b/include/linux/init_task.h
@@ -54,10 +54,10 @@
.rlim = INIT_RLIMITS, \
}
-#define INIT_SIGHAND(sighand) { \
- .count = ATOMIC_INIT(1), \
- .action = { {{NULL,}}, }, \
- .siglock = SPIN_LOCK_UNLOCKED, \
+#define INIT_SIGHAND(sighand) { \
+ .count = ATOMIC_INIT(1), \
+ .action = { { { .sa_handler = NULL, } }, }, \
+ .siglock = SPIN_LOCK_UNLOCKED, \
}
extern struct group_info init_groups;