mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
(main): Use EXIT_SUCCESS and EXIT_FAILURE, not 0 and 1.
This commit is contained in:
1 parent
35c0c98c7d
commit
a586795939
1 file changed
+3
-3
+3
-3
@@ -77,7 +77,7 @@ main (int argc, char **argv)
|
||||
mode_t newmode;
|
||||
struct mode_change *change;
|
||||
const char *specified_mode;
|
||||
int errors = 0;
|
||||
int exit_status = EXIT_SUCCESS;
|
||||
int optc;
|
||||
|
||||
initialize_main (&argc, &argv);
|
||||
@@ -145,9 +145,9 @@ main (int argc, char **argv)
|
||||
}
|
||||
|
||||
if (fail)
|
||||
errors = 1;
|
||||
exit_status = EXIT_FAILURE;
|
||||
}
|
||||
|
||||
exit (errors);
|
||||
exit (exit_status);
|
||||
#endif
|
||||
}
|
||||
Reference in new issue
Block a user