Skip to content

Commit

Permalink
Add strict prototypes
Browse files Browse the repository at this point in the history
  • Loading branch information
neheb committed Oct 28, 2017
1 parent 4e9d6f8 commit 1d7c95a
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion wlancap2hcx.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ char *usernameoutname = NULL;

hcx_t oldhcxrecord;
/*===========================================================================*/
void initgloballists()
void initgloballists(void)
{
memset(&hcmd5, 0, sizeof(hc4800_t));
memset(&hcleap, 0, sizeof(hc5500_t));
Expand Down
12 changes: 6 additions & 6 deletions wlandump-ng.c
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ const uint8_t requestidentity[] =
#define REQUESTIDENTITY_SIZE sizeof(requestidentity)

/*===========================================================================*/
bool initgloballists()
bool initgloballists(void)
{
struct timeval starttimeval;

Expand Down Expand Up @@ -428,7 +428,7 @@ return 0;
/*===========================================================================*/
void handlewps(uint8_t *mac1, uint8_t *mac2, uint8_t tods, uint8_t fromds, eapext_t *eapext)
{
int wpskey;
int wpskey;
int m;
time_t t = time(NULL);
struct tm *tm = localtime(&t);
Expand Down Expand Up @@ -474,7 +474,7 @@ if(wpskey == WPS_MSG_M5)
printf(" WPS-M5 message \n");
if(wpskey == WPS_MSG_M6)
printf(" WPS-M6 message \n");
if(wpskey == WPS_MSG_M7)
if(wpskey == WPS_MSG_M7)
printf(" WPS-M7 message \n");
if(wpskey == WPS_MSG_M8)
printf(" WPS-M8 message \n");
Expand All @@ -487,7 +487,7 @@ if(wpskey == WPS_MSG_DONE)
return;
}
/*===========================================================================*/
void nextmac()
void nextmac(void)
{
mynic++;
myaddr[5] = mynic & 0xff;
Expand Down Expand Up @@ -537,7 +537,7 @@ else
}
}
/*===========================================================================*/
void sendundirectedpr()
void sendundirectedpr(void)
{
int pcapstatus;
mac_t grundframe;
Expand Down Expand Up @@ -1112,7 +1112,7 @@ if(signo == TT_SIGUSR2)
return;
}
/*===========================================================================*/
void setchannel()
void setchannel(void)
{
struct iwreq wrq;

Expand Down
14 changes: 7 additions & 7 deletions wlanhcx2psk.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ char pskstring[66];
/*===========================================================================*/
/* globale Initialisierung */

bool globalinit()
bool globalinit(void)
{
time_t t = time(NULL);
struct tm *tm = localtime(&t);
Expand Down Expand Up @@ -130,7 +130,7 @@ if(fileflag == true)
return;
}
/*===========================================================================*/
void keywriteweakpass()
void keywriteweakpass(void)
{
size_t w;
int y;
Expand Down Expand Up @@ -200,7 +200,7 @@ for(y = 1900; y <= thisyear; y++)
return;
}
/*===========================================================================*/
static void keywriteng()
static void keywriteng(void)
{
int cn;
size_t ca, cs;
Expand Down Expand Up @@ -278,7 +278,7 @@ for(ca = 0; ca < (sizeof(adjectiv) / sizeof(char *)); ca++)
return;
}
/*===========================================================================*/
void keywriteeudate()
void keywriteeudate(void)
{
int d ,m ,y;

Expand Down Expand Up @@ -341,7 +341,7 @@ for(y = 1900; y <= thisyear; y++)
return;
}
/*===========================================================================*/
void keywriteusdate()
void keywriteusdate(void)
{
int d ,m ,y;

Expand Down Expand Up @@ -404,7 +404,7 @@ for(y = 1900; y <= thisyear; y++)
return;
}
/*===========================================================================*/
void keywriteyearyear()
void keywriteyearyear(void)
{
int y, y2;

Expand Down Expand Up @@ -593,7 +593,7 @@ writepsk(pskstring);
return;
}
/*===========================================================================*/
void keywriteallwpskeys()
void keywriteallwpskeys(void)
{
int c, cs;

Expand Down
2 changes: 1 addition & 1 deletion wlanhcxinfo.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ unsigned char atoi64[0x100];
/*===========================================================================*/
/* globale Initialisierung */

void globalinit()
void globalinit(void)
{
const char *pos;
memset(atoi64, 0x7F, sizeof(atoi64));
Expand Down
2 changes: 1 addition & 1 deletion wlanjohn2hcx.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ unsigned char atoi64[0x100];
/*===========================================================================*/
/* globale Initialisierung */

void globalinit()
void globalinit(void)
{
const char *pos;
memset(atoi64, 0x7F, sizeof(atoi64));
Expand Down
8 changes: 4 additions & 4 deletions wlanrcascan.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ char *interfacename = NULL;
/* Konstante */

/*===========================================================================*/
bool initgloballists()
bool initgloballists(void)
{
memset(&nullmac, 0, 6);

Expand All @@ -76,7 +76,7 @@ apl_t *ib = (apl_t *)b;
return ia->channel > ib->channel;
}
/*===========================================================================*/
void printstatus()
void printstatus(void)
{
int c, m;
apl_t *zeiger = apliste;
Expand Down Expand Up @@ -158,7 +158,7 @@ if((signum == SIGINT) || (signum == SIGTERM) || (signum == SIGKILL))
return;
}
/*===========================================================================*/
void setchannel()
void setchannel(void)
{
struct iwreq wrq;

Expand Down Expand Up @@ -318,7 +318,7 @@ while(1)
}
}
/*===========================================================================*/
bool startcapturing()
bool startcapturing(void)
{
int datalink = 0;
int has_rth = false;
Expand Down

0 comments on commit 1d7c95a

Please sign in to comment.