From d144ba5e2f5abcb043b3272e63512b59ebb6b905 Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Sat, 18 Feb 2023 12:28:44 -0500 Subject: [PATCH] wtf --- citadel/Makefile | 2 +- citadel/utils/ctdl3264.c | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) 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); -- 2.39.2