X-Git-Url: http://www.dolda2000.com/gitweb/?a=blobdiff_plain;f=src%2Faccesslog.c;h=27663c4983b096fc182b97852f2584652e32bcd5;hb=e3f12675774fa2bb0f68f2cea05f4285d1fc235c;hp=06bdd986f252fe2c39a65c54dcab3a644dae1369;hpb=af222eef990d14148d4c83134de439be6eeef84a;p=ashd.git diff --git a/src/accesslog.c b/src/accesslog.c index 06bdd98..27663c4 100644 --- a/src/accesslog.c +++ b/src/accesslog.c @@ -204,7 +204,6 @@ int main(int argc, char **argv) int fd; struct pollfd pfd[2]; - optarg = NULL; while((c = getopt(argc, argv, "+hFaf:")) >= 0) { switch(c) { case 'h': @@ -243,7 +242,7 @@ int main(int argc, char **argv) } } if((ch = stdmkchild(argv + optind + 1, NULL, NULL)) < 0) { - flog(LOG_ERR, "accesslog: could fork child: %s", strerror(errno)); + flog(LOG_ERR, "accesslog: could not fork child: %s", strerror(errno)); exit(1); } signal(SIGHUP, sighandler);