aewl

diff event.c @ 581:601842ee4484

applied Jukka's sizeof K&R compliance patch, applied Manuels' last-line printage proposal for stdin reading.
author arg@mig29
date Sun, 26 Nov 2006 14:26:53 +0100
parents fe766305eed1
children c2ddd15b199e
line diff
     1.1 --- a/event.c	Sun Nov 26 13:31:36 2006 +0100
     1.2 +++ b/event.c	Sun Nov 26 14:26:53 2006 +0100
     1.3 @@ -244,7 +244,7 @@
     1.4  
     1.5  static void
     1.6  keypress(XEvent *e) {
     1.7 -	static unsigned int len = sizeof(key) / sizeof(key[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 @@ -355,7 +355,7 @@
    1.13  
    1.14  void
    1.15  grabkeys(void) {
    1.16 -	static unsigned int len = sizeof(key) / sizeof(key[0]);
    1.17 +	static unsigned int len = sizeof key / sizeof key[0];
    1.18  	unsigned int i;
    1.19  	KeyCode code;
    1.20