summaryrefslogtreecommitdiff
path: root/src/unexpand.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1996-03-24 16:59:11 +0000
committerJim Meyering <jim@meyering.net>1996-03-24 16:59:11 +0000
commit818d29db9bee7b3a87d677bb4bdd520b30924fad (patch)
tree4994682f8e7be50460c142ee85321f4e5f3a29e6 /src/unexpand.c
parent47f70113d4342682a6408f85337676f1ccb7e8fe (diff)
downloadcoreutils-818d29db9bee7b3a87d677bb4bdd520b30924fad.tar.xz
Call error with EXIT_FAILURE (rather than `1') as first actual parameter.
Diffstat (limited to 'src/unexpand.c')
-rw-r--r--src/unexpand.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/unexpand.c b/src/unexpand.c
index 80e1de223..ea43e98a3 100644
--- a/src/unexpand.c
+++ b/src/unexpand.c
@@ -141,7 +141,7 @@ parse_tabstops (const 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);
@@ -159,9 +159,9 @@ validate_tabstops (const 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];
}
}
@@ -450,8 +450,8 @@ main (int argc, char **argv)
unexpand ();
if (have_read_stdin && fclose (stdin) == EOF)
- error (1, errno, "-");
+ error (EXIT_FAILURE, errno, "-");
if (fclose (stdout) == EOF)
- error (1, errno, _("write error"));
+ error (EXIT_FAILURE, errno, _("write error"));
exit (exit_status == 0 ? EXIT_SUCCESS : EXIT_FAILURE);
}