summaryrefslogtreecommitdiff
path: root/tests/lib/test_segv.c
diff options
context:
space:
mode:
authorwhitespace / reindent <invalid@invalid.invalid>2017-07-17 14:03:14 +0200
committerwhitespace / reindent <invalid@invalid.invalid>2017-07-17 14:04:07 +0200
commitd62a17aedeb0eebdba98238874bb13d62c48dbf9 (patch)
tree3b319b1d61c8b85b4d1f06adf8b844bb8a9b5107 /tests/lib/test_segv.c
parent888ac268a0077fc9ebd1218cec6ae472af0bfc40 (diff)
indent.py `git ls-files | pcregrep '\.[ch]$' | pcregrep -v '^(ldpd|babeld|nhrpd)/'` Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'tests/lib/test_segv.c')
-rw-r--r--tests/lib/test_segv.c33
1 files changed, 15 insertions, 18 deletions
diff --git a/tests/lib/test_segv.c b/tests/lib/test_segv.c
index 14384f4327..3c9b57f049 100644
--- a/tests/lib/test_segv.c
+++ b/tests/lib/test_segv.c
@@ -28,32 +28,29 @@
#include "lib/log.h"
#include "lib/memory.h"
-struct quagga_signal_t sigs[] =
-{
-};
+struct quagga_signal_t sigs[] = {};
struct thread_master *master;
-static int
-threadfunc (struct thread *thread)
+static int threadfunc(struct thread *thread)
{
- int *null = NULL;
- *null += 1;
- return 0;
+ int *null = NULL;
+ *null += 1;
+ return 0;
}
-int
-main (void)
+int main(void)
{
- master = thread_master_create(NULL);
- signal_init (master, array_size(sigs), sigs);
+ master = thread_master_create(NULL);
+ signal_init(master, array_size(sigs), sigs);
- openzlog("testsegv", "NONE", 0, LOG_CONS | LOG_NDELAY | LOG_PID, LOG_DAEMON);
- zlog_set_level(ZLOG_DEST_SYSLOG, ZLOG_DISABLED);
- zlog_set_level(ZLOG_DEST_STDOUT, LOG_DEBUG);
- zlog_set_level(ZLOG_DEST_MONITOR, ZLOG_DISABLED);
+ openzlog("testsegv", "NONE", 0, LOG_CONS | LOG_NDELAY | LOG_PID,
+ LOG_DAEMON);
+ zlog_set_level(ZLOG_DEST_SYSLOG, ZLOG_DISABLED);
+ zlog_set_level(ZLOG_DEST_STDOUT, LOG_DEBUG);
+ zlog_set_level(ZLOG_DEST_MONITOR, ZLOG_DISABLED);
- thread_execute (master, threadfunc, 0, 0);
+ thread_execute(master, threadfunc, 0, 0);
- exit (0);
+ exit(0);
}