shod

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 142ca632da533954a7a06860268946bd6cbfa8c0
parent 29b78688308dfb0cd4edeac00d8f57f8a287405f
Author: Lucas de Sena <lucas@seninha.org>
Date:   Fri,  6 Jan 2023 09:54:26 -0300

mark unused arguments as unused; use errx(3)

Diffstat:
Mshod.c | 11+++++------
1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/shod.c b/shod.c @@ -90,14 +90,13 @@ xerror(Display *dpy, XErrorEvent *e) exit(1); /* unreached */ } - -/* Startup Error handler to check if another window manager - * is already running. */ +/* startup error handler to check if another window manager is already running. */ static int -xerrorstart(Display *dpy, XErrorEvent *ee) +xerrorstart(Display *dpy, XErrorEvent *e) { - fprintf(stderr, "shod: another window manager is already running\n"); - exit(1); + (void)dpy; + (void)e; + errx(1, "another window manager is already running"); } /* stop running */