From 05900b62e903f54bec2866a4cccaf049783af3c8 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Fri, 4 Mar 2011 08:46:04 +0100 Subject: Simplify file_close() in "utils.c". Signed-off-by: Lukas Fleischer --- src/utils.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src') 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); } /* -- cgit v1.2.3-70-g09d2