From: Art Cancro Date: Sat, 18 Feb 2023 17:28:44 +0000 (-0500) Subject: wtf X-Git-Tag: v973~4 X-Git-Url: https://code.citadel.org/?a=commitdiff_plain;h=d144ba5e2f5abcb043b3272e63512b59ebb6b905;p=citadel.git wtf --- diff --git a/citadel/Makefile b/citadel/Makefile index a57473264..1b9bd8b28 100644 --- a/citadel/Makefile +++ b/citadel/Makefile @@ -39,7 +39,7 @@ chkpwd: utils/chkpwd.c utils/auth.c utils/*.h server/*.h 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 diff --git a/citadel/utils/ctdl3264.c b/citadel/utils/ctdl3264.c index b863e5ec5..7e59e7503 100644 --- a/citadel/utils/ctdl3264.c +++ b/citadel/utils/ctdl3264.c @@ -39,14 +39,12 @@ int main(int argc, char **argv) { } // 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);