From 6a1bd896356ae3b59053b5e458fdff62d076114b Mon Sep 17 00:00:00 2001 From: FRIGN Date: Sun, 2 Oct 2016 00:03:18 +0200 Subject: No need for oldc to be static --- slock.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'slock.c') diff --git a/slock.c b/slock.c index 47d2e21..6dbf966 100644 --- 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) { -- cgit v1.2.3-70-g09d2