summaryrefslogtreecommitdiff
path: root/src/stty.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2002-08-31 08:52:10 +0000
committerJim Meyering <jim@meyering.net>2002-08-31 08:52:10 +0000
commit4006f4e672123e0189e58d4f76b58d06ae30eb94 (patch)
tree8a56a42aaa14b061c6181b43d9b3c6d78de83f5b /src/stty.c
parent74887031996e79df07dae9711f08d80839b31e62 (diff)
downloadcoreutils-4006f4e672123e0189e58d4f76b58d06ae30eb94.tar.xz
Change `exit (0)' to `exit (EXIT_SUCCESS)',
`exit (1)' to `exit (EXIT_FAILURE)', and `usage (1)' to `usage (EXIT_FAILURE)'.
Diffstat (limited to 'src/stty.c')
-rw-r--r--src/stty.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/stty.c b/src/stty.c
index ed9ec5566..de4e26193 100644
--- a/src/stty.c
+++ b/src/stty.c
@@ -802,7 +802,7 @@ main (int argc, char **argv)
/* FIXME: what is this?!? */
if (invalid_long_option)
- usage (1);
+ usage (EXIT_FAILURE);
/* Clear out the options that have been parsed. This is really
gross, but it's needed because stty SETTINGS look like options to
@@ -923,7 +923,7 @@ mutually exclusive"));
max_col = screen_columns ();
current_col = 0;
display_settings (output_type, &mode, fd, device_name);
- exit (0);
+ exit (EXIT_SUCCESS);
}
speed_was_set = 0;
@@ -958,7 +958,7 @@ mutually exclusive"));
if (match_found == 0 && reversed)
{
error (0, 0, _("invalid argument `%s'"), --argv[k]);
- usage (1);
+ usage (EXIT_FAILURE);
}
if (match_found == 0)
{
@@ -969,7 +969,7 @@ mutually exclusive"));
if (k == argc - 1)
{
error (0, 0, _("missing argument to `%s'"), argv[k]);
- usage (1);
+ usage (EXIT_FAILURE);
}
match_found = 1;
++k;
@@ -986,7 +986,7 @@ mutually exclusive"));
if (k == argc - 1)
{
error (0, 0, _("missing argument to `%s'"), argv[k]);
- usage (1);
+ usage (EXIT_FAILURE);
}
++k;
set_speed (input_speed, argv[k], &mode);
@@ -998,7 +998,7 @@ mutually exclusive"));
if (k == argc - 1)
{
error (0, 0, _("missing argument to `%s'"), argv[k]);
- usage (1);
+ usage (EXIT_FAILURE);
}
++k;
set_speed (output_speed, argv[k], &mode);
@@ -1011,7 +1011,7 @@ mutually exclusive"));
if (k == argc - 1)
{
error (0, 0, _("missing argument to `%s'"), argv[k]);
- usage (1);
+ usage (EXIT_FAILURE);
}
++k;
set_window_size ((int) integer_arg (argv[k]), -1,
@@ -1023,7 +1023,7 @@ mutually exclusive"));
if (k == argc - 1)
{
error (0, 0, _("missing argument to `%s'"), argv[k]);
- usage (1);
+ usage (EXIT_FAILURE);
}
++k;
set_window_size (-1, (int) integer_arg (argv[k]),
@@ -1042,7 +1042,7 @@ mutually exclusive"));
if (k == argc - 1)
{
error (0, 0, _("missing argument to `%s'"), argv[k]);
- usage (1);
+ usage (EXIT_FAILURE);
}
++k;
mode.c_line = integer_arg (argv[k]);
@@ -1065,7 +1065,7 @@ mutually exclusive"));
if (recover_mode (argv[k], &mode) == 0)
{
error (0, 0, _("invalid argument `%s'"), argv[k]);
- usage (1);
+ usage (EXIT_FAILURE);
}
require_set_attr = 1;
}
@@ -1133,7 +1133,7 @@ mutually exclusive"));
}
}
- exit (0);
+ exit (EXIT_SUCCESS);
}
/* Return 0 if not applied because not reversible; otherwise return 1. */
@@ -1912,7 +1912,7 @@ integer_arg (const char *s)
if (xstrtol (s, NULL, 0, &value, "bB") != LONGINT_OK)
{
error (0, 0, _("invalid integer argument `%s'"), s);
- usage (1);
+ usage (EXIT_FAILURE);
}
return value;
}