wtf
authorArt Cancro <ajc@citadel.org>
Sat, 18 Feb 2023 17:28:44 +0000 (12:28 -0500)
committerArt Cancro <ajc@citadel.org>
Sat, 18 Feb 2023 17:28:44 +0000 (12:28 -0500)
citadel/Makefile
citadel/utils/ctdl3264.c

index a5747326430f97cfeb68da3ed60532bb8619b30d..1b9bd8b28ade1f6f9d436539e9db0140d5cd251d 100644 (file)
@@ -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
index b863e5ec539287bca383e8989edccda486f29083..7e59e75035a97ab9909426c5ad50f2cf366a1c2d 100644 (file)
@@ -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);