From: Matthew Fernandez Date: Tue, 11 Jan 2022 04:17:50 +0000 (-0800) Subject: handle_keypress: return a C99 bool instead of boolean X-Git-Tag: 3.0.0~72^2~15 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2ce41c83961bdbf4c5577f45ba9dc6f34451cc55;p=graphviz handle_keypress: return a C99 bool instead of boolean --- diff --git a/plugin/glitz/gvdevice_glitz.c b/plugin/glitz/gvdevice_glitz.c index f00162bde..3a8f342bc 100644 --- a/plugin/glitz/gvdevice_glitz.c +++ b/plugin/glitz/gvdevice_glitz.c @@ -105,7 +105,7 @@ static void handle_client_message(GVJ_t * job, XClientMessageEvent * cmev) exit(0); } -static boolean handle_keypress(GVJ_t *job, XKeyEvent *kev) +static bool handle_keypress(GVJ_t *job, XKeyEvent *kev) { int i; @@ -114,9 +114,9 @@ static boolean handle_keypress(GVJ_t *job, XKeyEvent *kev) keycodes = (KeyCode *)job->keycodes; for (i=0; i < job->numkeys; i++) { if (kev->keycode == keycodes[i]) - return (job->keybindings[i].callback)(job); + return (job->keybindings[i].callback)(job) != 0; } - return FALSE; + return false; } static Visual *find_argb_visual(Display * dpy, int scr)