Simplify file_close() in "utils.c".
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
This commit is contained in:
parent
1fc9c69e43
commit
05900b62e9
@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user