mirror of
https://github.com/wwarthen/RomWBW.git
synced 2026-02-06 14:11:48 -06:00
make compile shut up about conditionals
This commit is contained in:
@@ -673,13 +673,17 @@ FILE *open_diskdefs()
|
||||
FILE *fp;
|
||||
char *ddenv = getenv("DISKDEFS");
|
||||
|
||||
if (fp=fopen("diskdefs","r"))
|
||||
if ((fp=fopen("diskdefs","r")) != 0) {
|
||||
return fp;
|
||||
if (fp=fopen(DISKDEFS,"r"))
|
||||
}
|
||||
if ((fp=fopen(DISKDEFS,"r")) != 0) {
|
||||
return fp;
|
||||
if (ddenv)
|
||||
if (fp=fopen(ddenv,"r"))
|
||||
}
|
||||
if (ddenv) {
|
||||
if ((fp=fopen(ddenv,"r")) != 0) {
|
||||
return fp;
|
||||
}
|
||||
}
|
||||
fprintf(stderr,"%s: Neither diskdefs%s%s%s nor %s could be opened.\n",
|
||||
cmd,
|
||||
ddenv ? ", ": "", ddenv ? ddenv : "", ddenv ? "," : "" , DISKDEFS);
|
||||
|
||||
Reference in New Issue
Block a user