mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-17 07:47:41 +01:00
move attribute noreturn
This commit is contained in:
parent
a3e8081c62
commit
b4793e0fef
1 changed files with 2 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue