No need for oldc to be static

このコミットが含まれているのは:
FRIGN 2016-10-02 00:03:18 +02:00 committed by Markus Teich
コミット 6a1bd89635
1個のファイルの変更2行の追加2行の削除

ファイルの表示

@ -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) {