X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=server-src%2Famlogroll.c;h=0132fd0aebfaec8cb46ae1b72186a8140ff20b03;hb=d3b2175e084f88c8736ad7073eacbf4670147aec;hp=f00c348e482f1d839027bcd931f2bd2649261f60;hpb=34197d9f46a5f4e944378cbb65fca32ee0eec7b9;p=debian%2Famanda diff --git a/server-src/amlogroll.c b/server-src/amlogroll.c index f00c348..0132fd0 100644 --- a/server-src/amlogroll.c +++ b/server-src/amlogroll.c @@ -69,7 +69,7 @@ int main(int argc, char **argv) /*NOTREACHED*/ } - parse_server_conf(argc, argv, &new_argc, &new_argv); + parse_conf(argc, argv, &new_argc, &new_argv); my_argc = new_argc; my_argv = new_argv; @@ -156,13 +156,10 @@ void handle_start(void) ch = *s++; skip_whitespace(s, ch); -#define sc "date" - if(ch == '\0' || strncmp(s - 1, sc, SIZEOF(sc)-1) != 0) { + if(ch == '\0' || strncmp_const_skip(s - 1, "date", s, ch) != 0) { return; /* ignore bogus line */ } - s += SIZEOF(sc) - 1; - ch = s[-1]; -#undef sc + skip_whitespace(s, ch); if(ch == '\0') { return;