summaryrefslogtreecommitdiff
path: root/src/sum.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sum.c')
-rw-r--r--src/sum.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sum.c b/src/sum.c
index 04e393163..d2cd80f2b 100644
--- a/src/sum.c
+++ b/src/sum.c
@@ -24,6 +24,7 @@
#include <sys/types.h>
#include <getopt.h>
#include "system.h"
+#include "die.h"
#include "error.h"
#include "fadvise.h"
#include "human.h"
@@ -270,6 +271,6 @@ main (int argc, char **argv)
ok &= sum_func (argv[optind], files_given);
if (have_read_stdin && fclose (stdin) == EOF)
- error (EXIT_FAILURE, errno, "%s", quotef ("-"));
+ die (EXIT_FAILURE, errno, "%s", quotef ("-"));
return ok ? EXIT_SUCCESS : EXIT_FAILURE;
}