summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander.sulfrian@fu-berlin.de>2014-07-15 18:24:59 +0200
committerAlexander Sulfrian <alexander.sulfrian@fu-berlin.de>2014-07-15 18:24:59 +0200
commit25aaae3c7fb02fdacccef1b79fd2470951978cf0 (patch)
tree39a89b4dee747517e0a3ab831089ce7bf847c759
parentbcf4e71312a2e5693aee2613f187a43f87c38a09 (diff)
downloadxrandr-notify-25aaae3c7fb02fdacccef1b79fd2470951978cf0.tar.gz
xrandr-notify-25aaae3c7fb02fdacccef1b79fd2470951978cf0.tar.xz
xrandr-notify-25aaae3c7fb02fdacccef1b79fd2470951978cf0.zip
remove unused variable
-rw-r--r--xrandr-notify.c6
1 files changed, 1 insertions, 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;
}