summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xnap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xnap.c b/xnap.c
index 1b9f20b..1ebface 100644
--- a/xnap.c
+++ b/xnap.c
@@ -99,7 +99,7 @@ void setup(void)
if (dpy == NULL)
die ("failed to open display");
- int scr = DefaultScreen(dpy);
+ scr = DefaultScreen(dpy);
root = RootWindow(dpy, scr);
/* pointer */