projects
/
fuckit_dot_so.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d02de3
)
C++ doesn't do structure initialization.
author
Matt Mullins
<mmullins@mmlx.us>
Sun, 25 May 2014 22:02:43 +0000
(15:02 -0700)
committer
Matt Mullins
<mmullins@mmlx.us>
Sun, 25 May 2014 22:02:43 +0000
(15:02 -0700)
fuckit.cpp
patch
|
blob
|
history
diff --git
a/fuckit.cpp
b/fuckit.cpp
index
b6e6a0b
..
da666f2
100644
(file)
--- a/
fuckit.cpp
+++ b/
fuckit.cpp
@@
-20,10
+20,11
@@
static void setup_signals()
fprintf(stderr, "Set up signals\n");
sigset_t mask;
sigemptyset(&mask);
- struct sigaction action = {
- .sa_sigaction = handle_sigsegv,
- .sa_mask = mask,
- .sa_flags = SA_SIGINFO,
- };
+
+ struct sigaction action;
+ action.sa_sigaction = handle_sigsegv;
+ action.sa_mask = mask;
+ action.sa_flags = SA_SIGINFO;
+
sigaction(SIGSEGV, &action, NULL);
}