static int check_shell (char *shell);
static boolean get_shell_list (char *shell);
-static int __attribute__((__noreturn__)) usage (FILE *fp)
+static void __attribute__((__noreturn__)) usage (FILE *fp)
{
fprintf (fp,
_("Usage: %s [ -s shell ] [ --list-shells ] "
return fs;
}
-static int __attribute__((__noreturn__)) usage(FILE *out)
+static void __attribute__((__noreturn__)) usage(FILE *out)
{
int i;
exit(out == stderr ? EXIT_FAILURE : EXIT_SUCCESS);
}
-static int __attribute__((__noreturn__))
+static void __attribute__((__noreturn__))
errx_mutually_exclusive(const char *opts)
{
errx(EXIT_FAILURE, "%s %s", opts, _("options are mutually exclusive"));
}
}
-static int __attribute__((__noreturn__)) help(FILE *out)
+static void __attribute__((__noreturn__)) help(FILE *out)
{
int i;
exit(out == stderr ? EXIT_FAILURE : EXIT_SUCCESS);
}
-static int __attribute__((__noreturn__))
+static void __attribute__((__noreturn__))
errx_mutually_exclusive(const char *opts)
{
errx(EXIT_FAILURE, "%s %s", opts, _("options are mutually exclusive"));
}
/* Fatal error. Print message and exit. */
- __attribute__ ((noreturn)) void
-die(int err, const char *fmt, ...) {
+void __attribute__ ((noreturn)) die(int err, const char *fmt, ...)
+{
va_list args;
va_start(args, fmt);
return ls;
}
-static int __attribute__((__noreturn__)) usage(FILE *out)
+static void __attribute__((__noreturn__)) usage(FILE *out)
{
int i;
exit(out == stderr ? EXIT_FAILURE : EXIT_SUCCESS);
}
-static int __attribute__((__noreturn__))
+static void __attribute__((__noreturn__))
errx_mutually_exclusive(const char *opts)
{
errx(EXIT_FAILURE, "%s %s", opts, _("options are mutually exclusive"));
static int donice(int,int,int);
-static int __attribute__((__noreturn__)) usage(FILE *out)
+static void __attribute__((__noreturn__)) usage(FILE *out)
{
fprintf(out, _(
"\nUsage:\n"