--- Kaid.cc Sun Feb 6 00:18:03 2005 --- Kaid.cc Wed Mar 2 08:52:16 2005 @@ -8,7 +8,11 @@ #include #include #include +#ifndef PLATFORM_freebsd #include +#else +#include +#endif #include "Kaid.h" #include "KaiDaemon.h" @@ -196,12 +200,8 @@ openlog("kaid", LOG_PID, LOG_DAEMON); try { - while(1) + while((c = getopt (argc, argv, "c:dho:sf:V")) != -1) { - if (c == -1) - break; - - c = getopt (argc, argv, "c:dho:sf:V"); switch(c) { case 'h':