move attribute noreturn

This commit is contained in:
Julien Danjou 2008-01-21 15:57:24 +01:00
parent a3e8081c62
commit b4793e0fef
1 changed files with 2 additions and 4 deletions

View File

@ -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