From b3e444e2d98833eed9571b23a88e7765cc77f07e Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Mon, 2 May 2022 18:01:52 +0200 Subject: [PATCH] implemeted skipCheck --- src/misc.c | 2 +- src/test/main.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/misc.c b/src/misc.c index 20fabcc..85009e4 100644 --- a/src/misc.c +++ b/src/misc.c @@ -16,7 +16,7 @@ void checkVersion() { - if (SKIP_CHECK) return; + if (getSkipCheck()) return; //FILE-CHECK VARIABLES int notFoundBuffer = 0; diff --git a/src/test/main.c b/src/test/main.c index 0c6247c..572ef56 100644 --- a/src/test/main.c +++ b/src/test/main.c @@ -4,6 +4,7 @@ #include #include +#include #define TEST_TEXT "Pepa smrdí." #define TEST_KEY "lZwOBFvjJEmaYRIaKsALKLkSeJvXhFPbZIRNFbjQRNyiOuLTexhgOpObHzyQgNT" @@ -13,8 +14,7 @@ main(int argc, char *argv[]) { if (argc == 2 && strcmp(argv[1], "skipCheck") == 0) { - #undef SKIP_CHECK - #define SKIP_CHECK 0 + setSkipCheck(1); } char *text = encryptText(TEST_TEXT, TEST_KEY);