fixes to comply to ANSI C

This commit is contained in:
dan committed 2003-07-16 20:58:49 +00:00
1 parent bd7943d9a7
commit 8457611316
19 files changed
+837 -816

No files matched your search

+3 -1
View File
@@ -1615,7 +1615,9 @@ WMReadPropListFromFile(char *file)
pldata->lineNumber = 1;
if (fread(pldata->ptr, length, 1, f) != 1) {
wsyserror(_("error reading from file '%s'"), file);
if (ferror(f)) {
wsyserror(_("error reading from file '%s'"), file);
}
plist = NULL;
goto cleanup;
}