Introduction
Introduction Statistics Contact Development Disclaimer Help
fix unnecesary c99-ism, fixes compilation on OpenBSD using gcc - svkbd - simple…
git clone git://git.suckless.org/svkbd
Log
Files
Refs
README
LICENSE
---
commit ea4b0588339d3fbc87c2054c105d6431ed3e0471
parent d19a80dfe5996a6e8b734a4118a423e71ee908c5
Author: Hiltjo Posthuma <[email protected]>
Date: Sun, 28 Mar 2021 14:42:38 +0200
fix unnecesary c99-ism, fixes compilation on OpenBSD using gcc
Diffstat:
M svkbd.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/svkbd.c b/svkbd.c
@@ -477,9 +477,10 @@ tmp_remap(KeySym keysym)
void
printkey(Key *k, KeySym mod) {
+ int i;
int shift = (mod == XK_Shift_L) || (mod == XK_Shift_R) || (mod == XK_S…
if (!shift) {
- for (int i = 0; i < numkeys; i++) {
+ for (i = 0; i < numkeys; i++) {
if ((keys[i].pressed) && ((keys[i].keysym == XK_Shift_…
shift = True;
break;
You are viewing proxied material from suckless.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.