#include <sys/resource.h>
#include <sys/stat.h>
#include <sys/wait.h>
+#include <sys/socket.h>
+
+#include <stdarg.h>
+#include <stddef.h>
+#include <string.h>
+
+#include <netinet/in.h>
+#include <arpa/inet.h>
#ifdef HAVE_SYS_UN_H
# include <sys/un.h>
#endif
+#include <errno.h>
+#include <fcntl.h>
+#include <pwd.h>
#include <signal.h>
+#include <time.h>
+#include <unistd.h>
#include <openssl/rand.h>
#include <openssl/sha.h>
default:
error("Invalid commandline option");
usage();
+ exit(1);
}
}
-
log_init(argv[0], ll, SYSLOG_FACILITY_USER, 1);
+ if (argc != optind) {
+ error("Unexpected commandline arguments.");
+ usage();
+ exit(1);
+ }
+
#ifdef USE_SEED_FILES
prng_read_seedfile();
#endif