Fix some potential problems detected by clang.
Most of these are unnecessary comparisons and functions returning the wrong types.
This commit is contained in:
parent
614dcfffd2
commit
172c83f254
11 changed files with 24 additions and 25 deletions
|
|
@ -201,7 +201,7 @@ main(int argc, char *argv[], char *envp[])
|
|||
byebye(1);
|
||||
}
|
||||
|
||||
if ((whoami == NULL) || (*whoami == '\0') || (strcmp(whoami,"dosuser")==0))
|
||||
if ((*whoami == '\0') || (strcmp(whoami,"dosuser")==0))
|
||||
{
|
||||
echo();
|
||||
mvaddstr(23,2,"Rogue's Name? ");
|
||||
|
|
@ -209,7 +209,7 @@ main(int argc, char *argv[], char *envp[])
|
|||
noecho();
|
||||
}
|
||||
|
||||
if ((whoami == NULL) || (*whoami == '\0'))
|
||||
if (*whoami == '\0')
|
||||
strcpy(whoami,"Rodney");
|
||||
|
||||
setup();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue