diff options
author | FRIGN <dev@frign.de> | 2016-10-02 00:03:18 +0200 |
---|---|---|
committer | Markus Teich <markus.teich@stusta.mhn.de> | 2016-10-10 20:40:13 +0200 |
commit | 6a1bd896356ae3b59053b5e458fdff62d076114b (patch) | |
tree | b26c19204933463ee3efee06de456ecad581df9e | |
parent | b099d2fd1868a5497069b85e5af0e6148077a6ba (diff) | |
download | slock-6a1bd896356ae3b59053b5e458fdff62d076114b.tar.gz slock-6a1bd896356ae3b59053b5e458fdff62d076114b.tar.xz |
No need for oldc to be static
-rw-r--r-- | slock.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) { |