added void parameter to every function without any parameters
This commit is contained in:
parent
8263a17a20
commit
3776ad5e02
@ -72,13 +72,13 @@ typedef struct
|
||||
//NOTE: Variables were moved to 'flags.c' to force y'all using getters
|
||||
|
||||
//GETTERS
|
||||
char getEncryptionSeparator();
|
||||
unsigned long getKeyLength();
|
||||
inputFlags getDefaultFlags(); //THIS GENERATES inputFlags WITH DEFAULT VALUES
|
||||
inputFlags getFlags(); //RETURNS USED FLAGS
|
||||
char getEncryptionSeparator(void);
|
||||
unsigned long getKeyLength(void);
|
||||
inputFlags getDefaultFlags(void); //THIS GENERATES inputFlags WITH DEFAULT VALUES
|
||||
inputFlags getFlags(void); //RETURNS USED FLAGS
|
||||
outputFlags noOutput(boolean exitCode); //SAME AS getDefaultFlags() BUT FOR outputFlags
|
||||
encryptionOperation_type_cb getEncryptionOperation(); //RETURNS FUNCTION WHICH IS USED FOR ENCRYPTION & DECRYPTION
|
||||
boolean getFlagsChanged();
|
||||
encryptionOperation_type_cb getEncryptionOperation(void); //RETURNS FUNCTION WHICH IS USED FOR ENCRYPTION & DECRYPTION
|
||||
boolean getFlagsChanged(void);
|
||||
|
||||
//SETTERS
|
||||
void setEncryptionSeparator(char encryptionSeparatorNew);
|
||||
|
@ -55,7 +55,7 @@ typedef struct
|
||||
} logFlags;
|
||||
|
||||
//GETTERS
|
||||
logFlags getLogFlags();
|
||||
logFlags getLogFlags(void);
|
||||
|
||||
//SETTERS
|
||||
void setLogFlags(logFlags logFlagsNew);
|
||||
|
@ -26,7 +26,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
void generateTextKeyChain(char *key, int *textKeyChain, int textKeyChainSize); //GENERATES ARRAY FOR ENCRYPTION/DECRYPTION
|
||||
void generateKey(char *key, int keyLength); //GENERATE ENCRYPTION KEY
|
||||
void deallocateOutput(outputFlags flags); //DEALLOCATES flags
|
||||
boolean checkVersion(); //THIS FUNCTION CHECKS IF LATEST VERSION OF WHY2 IS USED
|
||||
boolean checkVersion(void); //THIS FUNCTION CHECKS IF LATEST VERSION OF WHY2 IS USED
|
||||
boolean checkKey(char *key); //CHECKS IF KEY IS VALID
|
||||
boolean checkText(char *text); //CHECKS IF TEXT IS VALID
|
||||
unsigned long countIntLength(int number); //RETURNS LENGTH OF number
|
||||
|
@ -33,22 +33,22 @@ encryptionOperation_type_cb encryptionOperation_cb = encryptionOperation;
|
||||
boolean flagsChanged = 0; //CHANGES TO 1 WHEN U USE setFlags
|
||||
|
||||
//GETTERS
|
||||
char getEncryptionSeparator()
|
||||
char getEncryptionSeparator(void)
|
||||
{
|
||||
return encryptionSeparator;
|
||||
}
|
||||
|
||||
unsigned long getKeyLength()
|
||||
unsigned long getKeyLength(void)
|
||||
{
|
||||
return keyLength;
|
||||
}
|
||||
|
||||
inputFlags getDefaultFlags()
|
||||
inputFlags getDefaultFlags(void)
|
||||
{
|
||||
return DEFAULT_FLAGS;
|
||||
}
|
||||
|
||||
inputFlags getFlags()
|
||||
inputFlags getFlags(void)
|
||||
{
|
||||
return flags;
|
||||
}
|
||||
@ -68,12 +68,12 @@ outputFlags noOutput(boolean exitCode)
|
||||
return (outputFlags) { emptyText, emptyKey, 0, 0, 0, exitCode };
|
||||
}
|
||||
|
||||
encryptionOperation_type_cb getEncryptionOperation()
|
||||
encryptionOperation_type_cb getEncryptionOperation(void)
|
||||
{
|
||||
return encryptionOperation_cb;
|
||||
}
|
||||
|
||||
boolean getFlagsChanged()
|
||||
boolean getFlagsChanged(void)
|
||||
{
|
||||
return flagsChanged;
|
||||
}
|
||||
|
@ -87,7 +87,7 @@ char *replaceWord(char *string, char *old, char *new) //CODE FROM: https://www.g
|
||||
return result;
|
||||
}
|
||||
|
||||
boolean checkVersion()
|
||||
boolean checkVersion(void)
|
||||
{
|
||||
if (getFlags().noCheck) return SUCCESS;
|
||||
|
||||
|
@ -24,7 +24,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
logFlags flags = { NULL };
|
||||
|
||||
//GETTERS
|
||||
logFlags getLogFlags()
|
||||
logFlags getLogFlags(void)
|
||||
{
|
||||
return flags;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user