on prototypes, void means sth

This commit is contained in:
Philippe Teuwen 2019-04-09 22:42:23 +02:00
commit 28ca3e8c22
16 changed files with 24 additions and 24 deletions

View file

@ -35,7 +35,7 @@ int CLIParserInit(char *vprogramName, char *vprogramHint, char *vprogramHelp);
int CLIParserParseString(const char *str, void *vargtable[], size_t vargtableLen, bool allowEmptyExec); int CLIParserParseString(const char *str, void *vargtable[], size_t vargtableLen, bool allowEmptyExec);
int CLIParserParseStringEx(const char *str, void *vargtable[], size_t vargtableLen, bool allowEmptyExec, bool clueData); int CLIParserParseStringEx(const char *str, void *vargtable[], size_t vargtableLen, bool allowEmptyExec, bool clueData);
int CLIParserParseArg(int argc, char **argv, void *vargtable[], size_t vargtableLen, bool allowEmptyExec); int CLIParserParseArg(int argc, char **argv, void *vargtable[], size_t vargtableLen, bool allowEmptyExec);
void CLIParserFree(); void CLIParserFree(void);
int CLIParamHexToBuf(struct arg_str *argstr, uint8_t *data, int maxdatalen, int *datalen); int CLIParamHexToBuf(struct arg_str *argstr, uint8_t *data, int maxdatalen, int *datalen);
int CLIParamStrToBuf(struct arg_str *argstr, uint8_t *data, int maxdatalen, int *datalen); int CLIParamStrToBuf(struct arg_str *argstr, uint8_t *data, int maxdatalen, int *datalen);

View file

@ -32,7 +32,7 @@
#include "loclass/cipherutils.h" // for decimating samples in getsamples #include "loclass/cipherutils.h" // for decimating samples in getsamples
#include "cmdlfem4x.h" // askem410xdecode #include "cmdlfem4x.h" // askem410xdecode
command_t *CmdDataCommands(); command_t *CmdDataCommands(void);
int CmdData(const char *Cmd); int CmdData(const char *Cmd);
void printDemodBuff(void); void printDemodBuff(void);

View file

@ -38,6 +38,6 @@ int CmdHFTune(const char *Cmd);
int CmdHFSearch(const char *Cmd); int CmdHFSearch(const char *Cmd);
int CmdHFSniff(const char *Cmd); int CmdHFSniff(const char *Cmd);
int usage_hf_search(); int usage_hf_search(void);
int usage_hf_sniff(); int usage_hf_sniff(void);
#endif #endif

View file

@ -52,7 +52,7 @@ typedef struct {
uint32_t ks3; // at ^ at_enc uint32_t ks3; // at ^ at_enc
} TAuthData; } TAuthData;
void ClearAuthData(); void ClearAuthData(void);
uint8_t iso14443A_CRC_check(bool isResponse, uint8_t *d, uint8_t n); uint8_t iso14443A_CRC_check(bool isResponse, uint8_t *d, uint8_t n);
uint8_t iso14443B_CRC_check(uint8_t *d, uint8_t n); uint8_t iso14443B_CRC_check(uint8_t *d, uint8_t n);

View file

@ -19,12 +19,12 @@ struct pcf7931_config {
int16_t OffsetPosition; int16_t OffsetPosition;
}; };
int pcf7931_resetConfig(); int pcf7931_resetConfig(void);
int pcf7931_printConfig(); int pcf7931_printConfig(void);
int usage_pcf7931_read(); int usage_pcf7931_read(void);
int usage_pcf7931_write(); int usage_pcf7931_write(void);
int usage_pcf7931_config(); int usage_pcf7931_config(void);
int CmdLFPCF7931(const char *Cmd); int CmdLFPCF7931(const char *Cmd);

View file

@ -42,6 +42,6 @@
#endif #endif
int CommandReceived(char *Cmd); int CommandReceived(char *Cmd);
command_t *getTopLevelCommandTable(); command_t *getTopLevelCommandTable(void);
#endif #endif

View file

@ -48,11 +48,11 @@ typedef struct {
bool dl_it(uint8_t *dest, uint32_t bytes, uint32_t start_index, UsbCommand *response, size_t ms_timeout, bool show_warning, uint32_t rec_cmd); bool dl_it(uint8_t *dest, uint32_t bytes, uint32_t start_index, UsbCommand *response, size_t ms_timeout, bool show_warning, uint32_t rec_cmd);
void SetOffline(bool value); void SetOffline(bool value);
bool IsOffline(); bool IsOffline(void);
void *uart_receiver(void *targ); void *uart_receiver(void *targ);
void SendCommand(UsbCommand *c); void SendCommand(UsbCommand *c);
void clearCommandBuffer(); void clearCommandBuffer(void);
#define FLASHMODE_SPEED 460800 #define FLASHMODE_SPEED 460800
bool OpenProxmark(void *port, bool wait_for_port, int timeout, bool flash_mode, uint32_t speed); bool OpenProxmark(void *port, bool wait_for_port, int timeout, bool flash_mode, uint32_t speed);

View file

@ -30,7 +30,7 @@ bool fskClocks(uint8_t *fc1, uint8_t *fc2, uint8_t *rf1, int *firstClockEdge);
void setGraphBuf(uint8_t *buff, size_t size); void setGraphBuf(uint8_t *buff, size_t size);
void save_restoreGB(uint8_t saveOpt); void save_restoreGB(uint8_t saveOpt);
bool HasGraphData(); bool HasGraphData(void);
// Max graph trace len: 40000 (bigbuf) * 8 (at 1 bit per sample) // Max graph trace len: 40000 (bigbuf) * 8 (at 1 bit per sample)
#ifndef MAX_GRAPH_TRACE_LEN #ifndef MAX_GRAPH_TRACE_LEN

View file

@ -62,7 +62,7 @@ typedef enum {
SIMD_NONE, SIMD_NONE,
} SIMDExecInstr; } SIMDExecInstr;
void SetSIMDInstr(SIMDExecInstr instr); void SetSIMDInstr(SIMDExecInstr instr);
SIMDExecInstr GetSIMDInstrAuto(); SIMDExecInstr GetSIMDInstrAuto(void);
const uint64_t crack_states_bitsliced(uint32_t cuid, uint8_t *best_first_bytes, statelist_t *p, uint32_t *keys_found, uint64_t *num_keys_tested, uint32_t nonces_to_bruteforce, uint8_t *bf_test_nonce_2nd_byte, noncelist_t *nonces); const uint64_t crack_states_bitsliced(uint32_t cuid, uint8_t *best_first_bytes, statelist_t *p, uint32_t *keys_found, uint64_t *num_keys_tested, uint32_t nonces_to_bruteforce, uint8_t *bf_test_nonce_2nd_byte, noncelist_t *nonces);
void bitslice_test_nonces(uint32_t nonces_to_bruteforce, uint32_t *bf_test_nonce, uint8_t *bf_test_nonce_par); void bitslice_test_nonces(uint32_t nonces_to_bruteforce, uint32_t *bf_test_nonce, uint8_t *bf_test_nonce_par);

View file

@ -29,7 +29,7 @@ typedef struct {
void prepare_bf_test_nonces(noncelist_t *nonces, uint8_t best_first_byte); void prepare_bf_test_nonces(noncelist_t *nonces, uint8_t best_first_byte);
bool brute_force_bs(float *bf_rate, statelist_t *candidates, uint32_t cuid, uint32_t num_acquired_nonces, uint64_t maximum_states, noncelist_t *nonces, uint8_t *best_first_bytes, uint64_t *found_key); bool brute_force_bs(float *bf_rate, statelist_t *candidates, uint32_t cuid, uint32_t num_acquired_nonces, uint64_t maximum_states, noncelist_t *nonces, uint8_t *best_first_bytes, uint64_t *found_key);
float brute_force_benchmark(); float brute_force_benchmark(void);
uint8_t trailing_zeros(uint8_t byte); uint8_t trailing_zeros(uint8_t byte);
bool verify_key(uint32_t cuid, noncelist_t *nonces, uint8_t *best_first_bytes, uint32_t odd, uint32_t even); bool verify_key(uint32_t cuid, noncelist_t *nonces, uint8_t *best_first_bytes, uint32_t odd, uint32_t even);

View file

@ -44,7 +44,7 @@ void doMAC(uint8_t *cc_nr_p, uint8_t *div_key_p, uint8_t mac[4]);
void doMAC_N(uint8_t *address_data_p, uint8_t address_data_size, uint8_t *div_key_p, uint8_t mac[4]); void doMAC_N(uint8_t *address_data_p, uint8_t address_data_size, uint8_t *div_key_p, uint8_t mac[4]);
#ifndef ON_DEVICE #ifndef ON_DEVICE
int testMAC(); int testMAC(void);
#endif #endif
#endif // CIPHER_H #endif // CIPHER_H

View file

@ -60,7 +60,7 @@ void pushBit(BitstreamOut *stream, bool bit);
int bitsLeft(BitstreamIn *stream); int bitsLeft(BitstreamIn *stream);
#ifndef ON_DEVICE #ifndef ON_DEVICE
int testCipherUtils(void); int testCipherUtils(void);
int testMAC(); int testMAC(void);
#endif #endif
void push6bits(BitstreamOut *stream, uint8_t bits); void push6bits(BitstreamOut *stream, uint8_t bits);
void EncryptDES(bool key[56], bool outBlk[64], bool inBlk[64], int verbose) ; void EncryptDES(bool key[56], bool outBlk[64], bool inBlk[64], int verbose) ;

View file

@ -124,7 +124,7 @@ int calculateMasterKey(uint8_t first16bytes[], uint64_t master_key[]);
* @brief Test function * @brief Test function
* @return * @return
*/ */
int testElite(); int testElite(void);
/** /**
Here are some pretty optimal values that can be used to recover necessary data in only Here are some pretty optimal values that can be used to recover necessary data in only

View file

@ -1,5 +1,5 @@
#ifndef HASH1_BRUTE_H #ifndef HASH1_BRUTE_H
#define HASH1_BRUTE_H #define HASH1_BRUTE_H
void brute_hash1(); void brute_hash1(void);
#endif // HASH1_BRUTE_H #endif // HASH1_BRUTE_H

View file

@ -12,8 +12,8 @@
#define UTIL_DARWIN_H__ #define UTIL_DARWIN_H__
void disableAppNap(const char *reason); void disableAppNap(const char *reason);
void enableAppNap(); void enableAppNap(void);
void makeUnfocusable(); void makeUnfocusable(void);
void makeFocusable(); void makeFocusable(void);
#endif #endif

View file

@ -21,6 +21,6 @@
extern void msleep(uint32_t n); // sleep n milliseconds extern void msleep(uint32_t n); // sleep n milliseconds
#endif // _WIN32 #endif // _WIN32
extern uint64_t msclock(); // a milliseconds clock extern uint64_t msclock(void); // a milliseconds clock
#endif #endif