summaryrefslogtreecommitdiff
path: root/src/unexpand.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/unexpand.c')
-rw-r--r--src/unexpand.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/unexpand.c b/src/unexpand.c
index a1317b173..78012740a 100644
--- a/src/unexpand.c
+++ b/src/unexpand.c
@@ -39,7 +39,7 @@
#include <getopt.h>
#include <sys/types.h>
#include "system.h"
-#include "error.h"
+#include "die.h"
#include "xstrndup.h"
#include "expand-common.h"
@@ -178,7 +178,7 @@ unexpand (void)
if (convert)
{
if (next_tab_column < column)
- error (EXIT_FAILURE, 0, _("input line is too long"));
+ die (EXIT_FAILURE, 0, _("input line is too long"));
if (c == '\t')
{
@@ -223,7 +223,7 @@ unexpand (void)
{
column++;
if (!column)
- error (EXIT_FAILURE, 0, _("input line is too long"));
+ die (EXIT_FAILURE, 0, _("input line is too long"));
}
if (pending)
@@ -231,7 +231,7 @@ unexpand (void)
if (pending > 1 && one_blank_before_tab_stop)
pending_blank[0] = '\t';
if (fwrite (pending_blank, 1, pending, stdout) != pending)
- error (EXIT_FAILURE, errno, _("write error"));
+ die (EXIT_FAILURE, errno, _("write error"));
pending = 0;
one_blank_before_tab_stop = false;
}
@@ -247,7 +247,7 @@ unexpand (void)
}
if (putchar (c) < 0)
- error (EXIT_FAILURE, errno, _("write error"));
+ die (EXIT_FAILURE, errno, _("write error"));
}
while (c != '\n');
}
@@ -303,7 +303,7 @@ main (int argc, char **argv)
have_tabval = true;
}
if (!DECIMAL_DIGIT_ACCUMULATE (tabval, c - '0', uintmax_t))
- error (EXIT_FAILURE, 0, _("tab stop value is too large"));
+ die (EXIT_FAILURE, 0, _("tab stop value is too large"));
break;
}
}