mirror of
https://github.com/troglobit/finit.git
synced 2026-10-19 11:09:35 +00:00
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:
1 parent
561c88a868
commit
4a8ca787d3
3 files changed
+38
-34
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user