mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
maint: getlimits: diagnose invalid options
* src/getlimits.c: Don't call initialize_exit_failure() as it's not needed for standard EXIT_FAILURE returns. Also use the function variant that diagnoses invalid options.
This commit is contained in:
1 parent
322f7abf8a
commit
f69743604b
1 file changed
+2
-3
+2
-3
@@ -123,11 +123,10 @@ main (int argc, char **argv)
|
||||
bindtextdomain (PACKAGE, LOCALEDIR);
|
||||
textdomain (PACKAGE);
|
||||
|
||||
initialize_exit_failure (EXIT_FAILURE);
|
||||
atexit (close_stdout);
|
||||
|
||||
parse_long_options (argc, argv, PROGRAM_NAME, PACKAGE_NAME, VERSION,
|
||||
usage, AUTHORS, (char const *) NULL);
|
||||
parse_gnu_standard_options_only (argc, argv, PROGRAM_NAME, PACKAGE_NAME,
|
||||
VERSION, true, usage, AUTHORS, NULL);
|
||||
|
||||
#define print_int(TYPE) \
|
||||
sprintf (limit + 1, "%"PRIuMAX, (uintmax_t) TYPE##_MAX); \
|
||||
|
||||
Reference in new issue
Block a user