From 17b7d09bf2320c9a8addabae7049ed5431553bd1 Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Thu, 29 Oct 2009 06:37:38 -0600 Subject: maint: avoid exiting with magic number Cope with gnulib's new sc_prohibit_magic_number_exit rule. * .x-sc_prohibit_magic_number_exit: New file, to add exemptions. * Makefile.am (syntax_check_exceptions): Distribute it. * lib/euidaccess-stat.c (main): Fix culprits. * src/chcon.c (main): Likewise. * src/runcon.c (main): Likewise. * src/setuidgid.c (main): Likewise. --- src/runcon.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/runcon.c') diff --git a/src/runcon.c b/src/runcon.c index f87eada6a..263737316 100644 --- a/src/runcon.c +++ b/src/runcon.c @@ -182,7 +182,7 @@ main (int argc, char **argv) if (optind >= argc) { error (0, 0, _("you must specify -c, -t, -u, -l, -r, or context")); - usage (1); + usage (EXIT_FAILURE); } context = argv[optind++]; } @@ -190,7 +190,7 @@ main (int argc, char **argv) if (optind >= argc) { error (0, 0, _("no command specified")); - usage (1); + usage (EXIT_FAILURE); } if (is_selinux_enabled () != 1) -- cgit v1.2.3-54-g00ecf