summaryrefslogtreecommitdiff
path: root/tests/lib/test_sig.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@diac24.net>2016-02-23 12:38:23 +0100
committerDavid Lamparter <equinox@opensourcerouting.org>2017-03-08 00:15:40 +0100
commitbf1013e6c4e05ba48e5b35192000123becdf426d (patch)
treea20c87261562f02f648eddbd59ea568b6815273e /tests/lib/test_sig.c
parentbb85d700d564ef836af88c9d17190c2c39b93e21 (diff)
lib: simplify protocol/log naming
The protocols enum serves no purpose other than adding potential for bugs and making it complicated to add a new protocol... nuke. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'tests/lib/test_sig.c')
-rw-r--r--tests/lib/test_sig.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/lib/test_sig.c b/tests/lib/test_sig.c
index 4a04240303..641156808a 100644
--- a/tests/lib/test_sig.c
+++ b/tests/lib/test_sig.c
@@ -64,9 +64,8 @@ main (void)
{
master = thread_master_create ();
signal_init (master, array_size(sigs), sigs);
-
- zlog_default = openzlog("testsig", ZLOG_NONE, 0,
- LOG_CONS|LOG_NDELAY|LOG_PID, LOG_DAEMON);
+
+ openzlog("testsig", "NONE", 0, LOG_CONS | LOG_NDELAY | LOG_PID, LOG_DAEMON);
zlog_set_level (NULL, ZLOG_DEST_SYSLOG, ZLOG_DISABLED);
zlog_set_level (NULL, ZLOG_DEST_STDOUT, LOG_DEBUG);
zlog_set_level (NULL, ZLOG_DEST_MONITOR, ZLOG_DISABLED);