Fixed build on 64bit systems (type mismatch in comparison)

This commit is contained in:
zx
2024-05-05 21:47:06 +03:00
parent ad1776c805
commit 634fc3e3e5
4 changed files with 7 additions and 6 deletions
+4 -3
View File
@@ -193,7 +193,7 @@ int main(int argc, char *argv[])
(void)setlocale(LC_ALL, "");
/* Set our name (for logging only) */
while( (c = getopt(argc, argv, "hf")) != EOF )
while( (c = getopt(argc, argv, "hf")) != (char)-1 )
{
switch( c ) {
case 'f':
@@ -204,8 +204,9 @@ int main(int argc, char *argv[])
exit(0);
default:
usage();
exit(1);
exit(5);
}
}
if( conf_readconf(conf_getconfname(), 0) )
@@ -216,7 +217,7 @@ int main(int argc, char *argv[])
if( log_open(log_getfilename(LOG_FILE_SESSION), NULL, NULL) )
{
log("can't continue without logging");
exit(1);
exit(2);
}
/* Ignore some terminating signals */
+1 -1
View File
@@ -253,7 +253,7 @@ int main(int argc, char *argv[])
bfstat_opts_default(&opts);
while( (c = getopt(argc, argv, "acfhn:prst")) != EOF )
while( (c = getopt(argc, argv, "acfhn:prst")) != (char)-1 )
{
switch( c ) {
case 'h':
+1 -1
View File
@@ -135,7 +135,7 @@ int main(int argc, char *argv[])
/* Initialise current locale */
(void)setlocale(LC_ALL, "");
while( (ch=getopt(argc, argv, "hrm")) != EOF )
while( (ch=getopt(argc, argv, "hrm")) != (char)-1 )
{
switch( ch ) {
case 'h':