diff --git a/include/flags.h b/include/flags.h index 6757bdb..ab71e73 100644 --- a/include/flags.h +++ b/include/flags.h @@ -51,7 +51,7 @@ static unsigned long keyLength = 50; //LENGTH OF KEY > DO NOT TOUCH THIS, US //GETTERS unsigned long getKeyLength(); inputFlags noFlags(); //THIS GENERATES inputFlags WITH DEFAULT VALUES -outputFlags noOutput(); //SAME AS noFlags() BUT FOR outputFlags +outputFlags noOutput(unsigned char exitCode); //SAME AS noFlags() BUT FOR outputFlags //SETTERS void setKeyLength(int keyLengthNew); diff --git a/src/lib/flags.c b/src/lib/flags.c index f6c197d..5993e3f 100644 --- a/src/lib/flags.c +++ b/src/lib/flags.c @@ -10,9 +10,9 @@ inputFlags noFlags() return (inputFlags) {0, 0, 1}; } -outputFlags noOutput() +outputFlags noOutput(unsigned char exitCode) { - return (outputFlags) {"", "", 0, 0}; + return (outputFlags) {"", "", 0, 0, exitCode}; } void setKeyLength(int keyLengthNew)