No need for oldc to be static
authorFRIGN <dev@frign.de>
Sat, 1 Oct 2016 22:03:18 +0000 (00:03 +0200)
committerMarkus Teich <markus.teich@stusta.mhn.de>
Mon, 10 Oct 2016 18:40:13 +0000 (20:40 +0200)
slock.c

diff --git a/slock.c b/slock.c
index 47d2e21..6dbf966 100644 (file)
--- a/slock.c
+++ b/slock.c
@@ -130,15 +130,15 @@ readpw(Display *dpy, struct xrandr *rr, struct lock **locks, int nscreens,
 {
        XRRScreenChangeNotifyEvent *rre;
        char buf[32], passwd[256], *inputhash;
-       int num, screen, running, failure;
+       int num, screen, running, failure, oldc;
        unsigned int len, color;
        KeySym ksym;
        XEvent ev;
-       static int oldc = INIT;
 
        len = 0;
        running = 1;
        failure = 0;
+       oldc = INIT;
 
        while (running && !XNextEvent(dpy, &ev)) {
                if (ev.type == KeyPress) {