added missing SUCCESS exit to checkKey & checkText

This commit is contained in:
Václav Šmejkal 2022-06-12 16:36:41 +02:00
parent 827331c2ff
commit 99e1ca932d
No known key found for this signature in database
GPG Key ID: FD749A97DF2D5E19

View File

@ -294,6 +294,8 @@ int checkKey(char *key, inputFlags flags)
if (!flags.noOutput) fprintf(stderr, "Key must be at least %lu characters long!\n", getKeyLength());
return INVALID_KEY;
}
return SUCCESS;
}
int checkText(char *text, inputFlags flags)
@ -303,6 +305,8 @@ int checkText(char *text, inputFlags flags)
if (!flags.noOutput) fprintf(stderr, "No text to encrypt!\n");
return INVALID_TEXT;
}
return SUCCESS;
}
unsigned long countIntLength(int number)