diff --git a/Makefile b/Makefile index 7d28f90..e6621dc 100644 --- a/Makefile +++ b/Makefile @@ -10,7 +10,7 @@ MTUNE ?= native # FLags # --------------------------------------------------------------------------- -CFLAGS = -IlibMCrypt/include -march=$(MARCH) -mtune=$(MTUNE) +CFLAGS = -IlibMCrypt/include -Wall -Wno-trigraphs -march=$(MARCH) -mtune=$(MTUNE) ifeq ($(DEBUG),1) CFLAGS += -Og -g diff --git a/frontend/src/main.c b/frontend/src/main.c index a4ad399..6102489 100644 --- a/frontend/src/main.c +++ b/frontend/src/main.c @@ -368,7 +368,7 @@ static int run_test(const char *const message) if (mcrypt_generate_seed(&seed) != 0) { FPUTS(T("error!\n\nWhoops: Failed to generate seed!\n\n"), stderr); - goto clean_up; + return 1; } char* const text_temp = strdup(message); @@ -564,4 +564,5 @@ exiting: } mcrypt_bzero((CHR*)passphrase, STRLEN(passphrase) * sizeof(CHR)); + return result; }