cc ${CFLAGS} ${LDFLAGS} utils/chkpwd.c utils/auth.c -lcrypt -o chkpwd
ctdl3264: utils/ctdl3264.c utils/*.h server/*.h utils/ctdl3264_structs.h
- cc ${CFLAGS} ${LDFLAGS} utils/ctdl3264.c -ldb -o ctdl3264
+ cc ${CFLAGS} ${LDFLAGS} utils/ctdl3264.c -o ctdl3264
utils/ctdl3264_structs.h: server/server.h utils/ctdl3264_prep.sh
utils/ctdl3264_prep.sh
}
// Parse command line
- while ((int a = getopt(argc, argv, "h:w:")) != EOF) {
+ int a;
+ while ((a = getopt(argc, argv, "h:")) != EOF) {
switch (a) {
case 'h':
strncpy(ctdldir, optarg, sizeof ctdldir);
break;
- case 'w':
- watchdog = atoi(optarg);
- break;
default:
fprintf(stderr, "%s: usage: %s [-h server_dir]\n", argv[0], argv[0]);
exit(2);