summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsabetts <sabetts>2000-08-30 03:15:50 +0000
committersabetts <sabetts>2000-08-30 03:15:50 +0000
commit6cd6ecb80db16d4d44b92635dde4efa984f18b3d (patch)
tree0cd789240231bcf17aa5cf3b3aa20f2b73fba17e
parentd64a253f86bf0f298ee8f362e2e0656177264e0c (diff)
downloadratpoison-6cd6ecb80db16d4d44b92635dde4efa984f18b3d.zip
altered the handler() function, although it is currently not being
used.
-rw-r--r--main.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/main.c b/main.c
index b7393fc..ef1a211 100644
--- a/main.c
+++ b/main.c
@@ -87,15 +87,15 @@ alrm_handler ()
int
handler (Display *d, XErrorEvent *e)
{
- char msg[100];
+ char error_msg[100];
if (e->request_code == X_ChangeWindowAttributes && e->error_code == BadAccess) {
fprintf(stderr, "ratpoison: There can be only ONE.\n");
exit(EXIT_FAILURE);
}
- XGetErrorText (d, e->error_code, msg, sizeof (msg));
- fprintf (stderr, "ratpoison: %s!\n", msg);
+ XGetErrorText (d, e->error_code, error_msg, sizeof (error_msg));
+ fprintf (stderr, "ratpoison: %s!\n", error_msg);
exit (EXIT_FAILURE);
}
@@ -114,7 +114,7 @@ main (int argc, char *argv[])
}
/* Setup signal handlers. */
- // XSetErrorHandler(handler);
+ //XSetErrorHandler(handler);
if (signal (SIGALRM, alrm_handler) == SIG_IGN) signal (SIGALRM, SIG_IGN);
if (signal (SIGTERM, sighandler) == SIG_IGN) signal (SIGTERM, SIG_IGN);
if (signal (SIGINT, sighandler) == SIG_IGN) signal (SIGINT, SIG_IGN);