aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2011-03-04 08:46:04 +0100
committerLukas Fleischer <calcurse@cryptocrack.de>2011-03-04 08:46:04 +0100
commit05900b62e903f54bec2866a4cccaf049783af3c8 (patch)
treeb46bfa554fda863c9ed28da6119484c536a282e4
parent1fc9c69e438984520e650d1f30be66f38758d37b (diff)
downloadcalcurse-05900b62e903f54bec2866a4cccaf049783af3c8.tar.gz
calcurse-05900b62e903f54bec2866a4cccaf049783af3c8.zip
Simplify file_close() in "utils.c".
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
-rw-r--r--src/utils.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/utils.c b/src/utils.c
index e4425f3..00fafea 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -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);
}
/*