From 25aaae3c7fb02fdacccef1b79fd2470951978cf0 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Tue, 15 Jul 2014 18:24:59 +0200 Subject: remove unused variable --- xrandr-notify.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/xrandr-notify.c b/xrandr-notify.c index fc8e60d..dc0e65f 100644 --- a/xrandr-notify.c +++ b/xrandr-notify.c @@ -11,7 +11,6 @@ int main(int argc, char **argv) Window root; XEvent event; int dummy, screen, randr_event_base; - bool has_randr; dpy = XOpenDisplay(NULL); if (dpy == NULL) { @@ -20,10 +19,7 @@ int main(int argc, char **argv) } /* Is the randr extension available? */ - has_randr = false; - has_randr = XRRQueryExtension(dpy, &randr_event_base, &dummy); - - if (!has_randr) { + if (!XRRQueryExtension(dpy, &randr_event_base, &dummy)) { fputs("ERROR: RandR extension unavailable on current screen!\n", stderr); return EXIT_FAILURE; } -- cgit v1.2.3