diff options
author | Lukas Fleischer <calcurse@cryptocrack.de> | 2011-03-04 08:46:04 +0100 |
---|---|---|
committer | Lukas Fleischer <calcurse@cryptocrack.de> | 2011-03-04 08:46:04 +0100 |
commit | 05900b62e903f54bec2866a4cccaf049783af3c8 (patch) | |
tree | b46bfa554fda863c9ed28da6119484c536a282e4 | |
parent | 1fc9c69e438984520e650d1f30be66f38758d37b (diff) | |
download | calcurse-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.c | 5 |
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); } /* |