pinentry-dmenu

a pinentry program based on dmenu
git clone anongit@rnpnr.xyz:pinentry-dmenu.git
Log | Files | Refs | Feed | README | LICENSE

Commit: 34729089e0b75dc122f0823d8b9b6e2fac74bfe8
Parent: 2ec6c77602d6f27fa3c5ed93beca55278556e2da
Author: Vincent Carluer
Date:   Thu,  4 Jan 2018 12:27:37 +0000

Instantiate j var outside #ifdef XINEMARA directive because it is used in loop outside directive

Diffstat:
Mpinentry-dmenu.c | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/pinentry-dmenu.c b/pinentry-dmenu.c @@ -268,8 +268,9 @@ drawwin(void) { } static void -setup(void) { - int x, y, i = 0; +setup(void) +{ + int x, y, i, j = 0; unsigned int du; XSetWindowAttributes swa; XIM xim; @@ -279,9 +280,8 @@ setup(void) { #ifdef XINERAMA XineramaScreenInfo *info; Window pw; - int a, j, di, n, area = 0; + int a, di, n, area = 0; #endif - /* init appearance */ for (j = 0; j < SchemeLast; j++) scheme[j] = drw_scm_create(drw, colors[j], 2);