From b4793e0fef5d3e4f4de91784d6b5cec1ce6ee315 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Mon, 21 Jan 2008 15:57:24 +0100 Subject: [PATCH] move attribute noreturn --- awesome.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/awesome.c b/awesome.c index a83caec03..d0df13e4c 100644 --- a/awesome.c +++ b/awesome.c @@ -190,18 +190,16 @@ xerror(Display * edpy, XErrorEvent * ee) return xerrorxlib(edpy, ee); /* may call exit */ } - /** Print help and exit(2) with given exit_code. */ -static void -exit_help(int exit_code) __attribute__ ((noreturn)) +static void __attribute__ ((noreturn)) +exit_help(int exit_code) { FILE *outfile = (exit_code == EXIT_SUCCESS)?stdout:stderr; fprintf(outfile, "Usage: awesome [-v | -h | -c configfile]\n"); exit(exit_code); } - /** Hello, this is main * \param argc who knows * \param argv who knows