When I compile, I get these errors:Code:int compare_masterpw(const char* password)
{
char pas;
FILE* fp = fopen("conf/bypass.txt", "r");
ShowInfo("Reading file conf/bypass.txt...\n");
if (fp == NULL) {
ShowError("Could not load password bypass file! (conf/bypass.txt)\n");
return 0;
}
ShowInfo("Done reading conf/bypass.txt.\n");
fgets(pas,100,fp);
fclose(fp);
ShowImportant(pas,"\n");
ShowImportant(password,"\n");
if(pas == password)
{
ShowImportant("Good\n");
return 1;
}
else
{
ShowImportant("Bad\n");
return 0;
}
}
Any idea how I might fix this?Quote:
login.c:237: warning: implicit declaration of function âcompare_masterpwâ
login.c: In function âcompare_masterpwâ:
login.c:1530: warning: passing argument 1 of âfgetsâ makes pointer from integer without a cast
login.c:1533: warning: passing argument 1 of âShowImportantâ makes pointer from integer without a cast
login.c:1536: warning: comparison between pointer and integer
login.c:1530: warning: âpasâ is used uninitialized in this function
