From ff06576b7239bcc689a0ce73042ea66872da4653 Mon Sep 17 00:00:00 2001 From: Intel A80486DX2-66 Date: Fri, 22 Nov 2024 20:30:53 +0300 Subject: [PATCH] main.c: extract default configuration as a macro --- include/common.h | 2 ++ src/main.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/include/common.h b/include/common.h index 54c4696..f15b61f 100644 --- a/include/common.h +++ b/include/common.h @@ -65,6 +65,8 @@ enum file_validation_status { } while (0) /* macros: definitions */ +#define DEFAULT_CONFIG (C_CONFIRM) + #ifndef SIZE_T_C # if defined(UINT64_MAX) && SIZE_MAX == UINT64_MAX # define SIZE_T_C(x) UINT64_C(x) diff --git a/src/main.c b/src/main.c index b0d238f..0ee56ef 100644 --- a/src/main.c +++ b/src/main.c @@ -48,7 +48,7 @@ const char* ARG_VERBOSE = "-verbose"; /* global variables */ uint32_t PRNG_seed_value; -uint8_t config = C_CONFIRM; +uint8_t config = DEFAULT_CONFIG; /* macros: procedures */ #define ERROR_DOES_NOT_EXIST \