summaryrefslogtreecommitdiff
path: root/src/sum.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sum.c')
-rw-r--r--src/sum.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sum.c b/src/sum.c
index 267b1b1be..38ccf3a54 100644
--- a/src/sum.c
+++ b/src/sum.c
@@ -253,7 +253,7 @@ main (int argc, char **argv)
errors = 1;
if (have_read_stdin && fclose (stdin) == EOF)
- error (1, errno, "-");
+ error (EXIT_FAILURE, errno, "-");
exit (errors == 0 ? EXIT_SUCCESS : EXIT_FAILURE);
}