From: Eric S. Raymond Date: Thu, 14 Nov 1996 23:04:24 +0000 (+0000) Subject: Go to 1.1 with a fix in it. X-Git-Tag: 1.1 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=660251451f3495ffaa3a60c851287f1c3c1d2edf;p=showkey.git Go to 1.1 with a fix in it. --- diff --git a/showkey.c b/showkey.c index abbfd71..dfb4c97 100644 --- a/showkey.c +++ b/showkey.c @@ -4,6 +4,7 @@ * Invoke this (no arguments needed) to see keycap-to-keystrokes mappings. * * by Eric S. Raymond , 1 Nov 88 + * fix for little-endian machines 21 Oct 1996. */ #include #include @@ -32,9 +33,10 @@ int sig; main() { struct termio cooked, raw; - unsigned int c, timeouts; + unsigned char c; + unsigned int i, timeouts; - for (c = SIGHUP; c <= SIGPOLL; c++) + for (i = SIGHUP; i <= SIGPOLL; i++) (void) signal(c, catcher); (void) ioctl(0, TCGETA, &cooked);