diff options
Diffstat (limited to 'xkill.c')
-rw-r--r-- | xkill.c | 24 |
1 files changed, 10 insertions, 14 deletions
@@ -73,22 +73,18 @@ Exit(int code) static void usage(void) { - static char *options[] = { -"where options include:", -" -display displayname X server to contact", -" -id resource resource whose client is to be killed", -" -frame don't ignore window manager frames", -" -button number specific button to be pressed to select window", -" -all kill all clients with top level windows", -"", -NULL}; + const char *options = +"where options include:\n" +" -display displayname X server to contact\n" +" -id resource resource whose client is to be killed\n" +" -frame don't ignore window manager frames\n" +" -button number specific button to be pressed to select window\n" +" -all kill all clients with top level windows\n" +"\n"; char **cpp; - fprintf (stderr, "usage: %s [-option ...]\n", - ProgramName); - for (cpp = options; *cpp; cpp++) { - fprintf (stderr, "%s\n", *cpp); - } + fprintf (stderr, "usage: %s [-option ...]\n%s", + ProgramName, options); Exit (1); } |