[hackers] [slock] No need for oldc to be static || FRIGN

From: <git_AT_suckless.org>
Date: Mon, 10 Oct 2016 20:40:03 +0200 (CEST)

commit 6a1bd896356ae3b59053b5e458fdff62d076114b
Author: FRIGN <dev_AT_frign.de>
AuthorDate: Sun Oct 2 00:03:18 2016 +0200
Commit: Markus Teich <markus.teich_AT_stusta.mhn.de>
CommitDate: Mon Oct 10 20:40:13 2016 +0200

    No need for oldc to be static

diff --git a/slock.c b/slock.c
index 47d2e21..6dbf966 100644
--- a/slock.c
+++ b/slock.c
_AT_@ -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) {
Received on Mon Oct 10 2016 - 20:40:03 CEST

This archive was generated by hypermail 2.3.0 : Mon Oct 10 2016 - 20:48:22 CEST