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
|
void
|
||||||
file_close (FILE *f, const char *pos)
|
file_close (FILE *f, const char *pos)
|
||||||
{
|
{
|
||||||
int ret;
|
EXIT_IF ((fclose (f)) != 0, _("Error when closing file at %s"), pos);
|
||||||
|
|
||||||
ret = fclose (f);
|
|
||||||
EXIT_IF (ret != 0, _("Error when closing file at %s"), pos);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user