Minor refactor, reuse MATCH_CMD() from conf.c in service_register()

When adding a new service option recently, I copy-pasted and forgot to
update the length argument to strncasecmp(), so it was time to fix that
once and for all.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg committed 2022-06-12 23:13:50 +02:00
1 parent 561c88a868
commit 4a8ca787d3
3 files changed
+38 -34

No files matched your search

-2
View File
@@ -48,8 +48,6 @@
#include "util.h"
#define BOOTSTRAP (runlevel == 0)
#define MATCH_CMD(l, c, x) \
(!strncasecmp(l, c, strlen(c)) && (x = (l) + strlen(c)))
int logfile_size_max = 200000; /* 200 kB */
int logfile_count_max = 5;