#include <unistd.h>
#include <limits.h>
#include <errno.h>
-#include <syslog.h>
#include <getopt.h>
#include <sys/stat.h>
#include <fcntl.h>
char *wgtfile, *directory, *x;
struct stat s;
- openlog(appname, LOG_PERROR, LOG_USER);
+ LOGUSER(appname);
force = 0;
wgtfile = directory = NULL;