diff --git a/src/knot/conf/logconf.c b/src/knot/conf/logconf.c index 4022880c19aadf7f692379b8147da2a8815781e0..1efcc8d1341a500bb3a543f92053764e86dcd79c 100644 --- a/src/knot/conf/logconf.c +++ b/src/knot/conf/logconf.c @@ -35,7 +35,7 @@ int log_reconfigure(const struct conf_t *conf, void *data) UNUSED(data); // Use defaults if no 'log' section is configured. - if (list_size(&conf->logs) == 0) { + if (EMPTY_LIST(conf->logs)) { log_close(); log_init(); return KNOT_EOK; diff --git a/tests/conf.c b/tests/conf.c index c5700566581bdeddb5e24e0cee19772057a26b74..506e0963116a43bb9a3cd19fd5f620dbdf370529 100644 --- a/tests/conf.c +++ b/tests/conf.c @@ -61,7 +61,7 @@ int main(int argc, char *argv[]) is_int(0, sockaddr_cmp(&iface->addr, &addr_ref), "interface1 address check"); // Test 9,10: Check server key - if(list_size(&conf->keys) == 0) { + if (EMPTY_LIST(conf->keys)) { ok(0, "TSIG key algorithm check - NO KEY FOUND"); ok(0, "TSIG key secret check - NO KEY FOUND"); } else {