summaryrefslogtreecommitdiff
path: root/src/expand.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/expand.c')
-rw-r--r--src/expand.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/expand.c b/src/expand.c
index de6aaa1c8..4103ea6c6 100644
--- a/src/expand.c
+++ b/src/expand.c
@@ -168,7 +168,7 @@ parse_tabstops (char *stops)
tabval = tabval * 10 + *stops - '0';
}
else
- error (1, 0, _("tab size contains an invalid character"));
+ error (EXIT_FAILURE, 0, _("tab size contains an invalid character"));
}
add_tabstop (tabval);
@@ -186,9 +186,9 @@ validate_tabstops (int *tabs, int entries)
for (i = 0; i < entries; i++)
{
if (tabs[i] == 0)
- error (1, 0, _("tab size cannot be 0"));
+ error (EXIT_FAILURE, 0, _("tab size cannot be 0"));
if (tabs[i] <= prev_tab)
- error (1, 0, _("tab sizes must be ascending"));
+ error (EXIT_FAILURE, 0, _("tab sizes must be ascending"));
prev_tab = tabs[i];
}
}
@@ -393,9 +393,9 @@ main (int argc, char **argv)
expand ();
if (have_read_stdin && fclose (stdin) == EOF)
- error (1, errno, "-");
+ error (EXIT_FAILURE, errno, "-");
if (ferror (stdout) || fclose (stdout) == EOF)
- error (1, errno, _("write error"));
+ error (EXIT_FAILURE, errno, _("write error"));
exit (exit_status == 0 ? EXIT_SUCCESS : EXIT_FAILURE);
}