Simplify file_close() in "utils.c".

Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
This commit is contained in:
Lukas Fleischer 2011-03-04 08:46:04 +01:00
parent 1fc9c69e43
commit 05900b62e9

View File

@ -970,10 +970,7 @@ str_toupper (char *s)
void
file_close (FILE *f, const char *pos)
{
int ret;
ret = fclose (f);
EXIT_IF (ret != 0, _("Error when closing file at %s"), pos);
EXIT_IF ((fclose (f)) != 0, _("Error when closing file at %s"), pos);
}
/*