summaryrefslogtreecommitdiff
path: root/locate/word_io.c
diff options
context:
space:
mode:
Diffstat (limited to 'locate/word_io.c')
-rw-r--r--locate/word_io.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/locate/word_io.c b/locate/word_io.c
index bc5f4ad8..51be32c3 100644
--- a/locate/word_io.c
+++ b/locate/word_io.c
@@ -32,6 +32,7 @@
#include "quotearg.h"
/* find headers. */
+#include "die.h"
#include "locatedb.h"
#if ENABLE_NLS
@@ -128,10 +129,10 @@ getword (FILE *fp,
* Either condition is fatal.
*/
if (feof (fp))
- error (EXIT_FAILURE, 0, _("unexpected EOF in %s"), quoted_name);
+ die (EXIT_FAILURE, 0, _("unexpected EOF in %s"), quoted_name);
else
- error (EXIT_FAILURE, errno,
- _("error reading a word from %s"), quoted_name);
+ die (EXIT_FAILURE, errno,
+ _("error reading a word from %s"), quoted_name);
abort ();
}
else