removed ALL forgotten (flags) parameters passed to misc functions

I mean... I hope
This commit is contained in:
Václav Šmejkal 2022-07-10 18:31:26 +02:00
parent 8363ff25ea
commit 7c87d835dd
No known key found for this signature in database
GPG Key ID: FD749A97DF2D5E19
2 changed files with 6 additions and 6 deletions

View File

@ -19,19 +19,19 @@ outputFlags decryptText(char *text, char *keyNew)
gettimeofday(&startTime, NULL); gettimeofday(&startTime, NULL);
//CHECK FOR ACTIVE VERSION //CHECK FOR ACTIVE VERSION
if ((checkExitCode = checkVersion(getFlags())) != SUCCESS) if ((checkExitCode = checkVersion()) != SUCCESS)
{ {
return noOutput(checkExitCode); return noOutput(checkExitCode);
} }
//CHECK FOR INVALID text //CHECK FOR INVALID text
if ((checkExitCode = checkText(text, getFlags())) != SUCCESS) if ((checkExitCode = checkText(text)) != SUCCESS)
{ {
return noOutput(checkExitCode); return noOutput(checkExitCode);
} }
//CHECK FOR INVALID key //CHECK FOR INVALID key
if ((checkExitCode = checkKey(keyNew, getFlags())) != SUCCESS) if ((checkExitCode = checkKey(keyNew)) != SUCCESS)
{ {
return noOutput(checkExitCode); return noOutput(checkExitCode);
} }

View File

@ -20,13 +20,13 @@ outputFlags encryptText(char *text, char *keyNew)
gettimeofday(&startTime, NULL); gettimeofday(&startTime, NULL);
//CHECK FOR ACTIVE VERSION //CHECK FOR ACTIVE VERSION
if ((checkExitCode = checkVersion(getFlags())) != SUCCESS) if ((checkExitCode = checkVersion()) != SUCCESS)
{ {
return noOutput(checkExitCode); return noOutput(checkExitCode);
} }
//CHECK FOR INVALID text //CHECK FOR INVALID text
if ((checkExitCode = checkText(text, getFlags())) != SUCCESS) if ((checkExitCode = checkText(text)) != SUCCESS)
{ {
return noOutput(checkExitCode); return noOutput(checkExitCode);
} }
@ -49,7 +49,7 @@ outputFlags encryptText(char *text, char *keyNew)
if (keyNew != NULL) if (keyNew != NULL)
{ {
//CHECK FOR INVALID key //CHECK FOR INVALID key
if ((checkExitCode = checkKey(keyNew, getFlags())) != SUCCESS) if ((checkExitCode = checkKey(keyNew)) != SUCCESS)
{ {
return noOutput(checkExitCode); return noOutput(checkExitCode);
} }