aewl

diff event.c @ 138:c1185dc7a36e

some cleanups/fixes inspired by Jukka Salmi's feedback
author arg@10ksloc.org
date Fri, 21 Jul 2006 18:34:10 +0200
parents 77922a389fa8
children 22213b9a2114
line diff
     1.1 --- a/event.c	Fri Jul 21 14:11:38 2006 +0200
     1.2 +++ b/event.c	Fri Jul 21 18:34:10 2006 +0200
     1.3 @@ -267,7 +267,7 @@
     1.4  static void
     1.5  keypress(XEvent *e)
     1.6  {
     1.7 -	static unsigned int len = key ? sizeof(key) / sizeof(key[0]) : 0;
     1.8 +	static unsigned int len = sizeof(key) / sizeof(key[0]);
     1.9  	unsigned int i;
    1.10  	KeySym keysym;
    1.11  	XKeyEvent *ev = &e->xkey;
    1.12 @@ -370,7 +370,7 @@
    1.13  void
    1.14  grabkeys()
    1.15  {
    1.16 -	static unsigned int len = key ? sizeof(key) / sizeof(key[0]) : 0;
    1.17 +	static unsigned int len = sizeof(key) / sizeof(key[0]);
    1.18  	unsigned int i;
    1.19  	KeyCode code;
    1.20