summaryrefslogtreecommitdiff
path: root/signal.c
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2019-03-01 19:52:55 -0500
committerJakob Kaivo <jkk@ung.org>2019-03-01 19:52:55 -0500
commit47fbd9c2bd6c59b46fcf4c93851192cbb9240ebb (patch)
treee204d4ef83c542167c9510006ba9490c79cc4caa /signal.c
parent3819846f8ad95b40d98d0a544fd16533590e30cb (diff)
move test variables into function body
Diffstat (limited to 'signal.c')
-rw-r--r--signal.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/signal.c b/signal.c
index 050534a..c109645 100644
--- a/signal.c
+++ b/signal.c
@@ -1,19 +1,19 @@
#include <signal.h>
#include "test.h"
-static sig_atomic_t sig_atomic;
-
-static int signals[] = {
- SIGABRT,
- SIGFPE,
- SIGILL,
- SIGINT,
- SIGSEGV,
- SIGTERM,
-};
-
void test_signal_h(void)
{
+ sig_atomic_t sig_atomic;
+
+ int signals[] = {
+ SIGABRT,
+ SIGFPE,
+ SIGILL,
+ SIGINT,
+ SIGSEGV,
+ SIGTERM,
+ };
+
testing_header("signal.h");
test_distinct(signals);