]> thyrsus.com Git - showkey.git/commitdiff
Go to 1.1 with a fix in it.
authorEric S. Raymond <esr@thyrsus.com>
Thu, 14 Nov 1996 23:04:24 +0000 (23:04 +0000)
committerEric S. Raymond <esr@thyrsus.com>
Thu, 14 Nov 1996 23:04:24 +0000 (23:04 +0000)
showkey.c

index abbfd71e8520cf5862704126b1dde04b692fbb60..dfb4c977ac82034be30e30797c5fc5340c6a6e4c 100644 (file)
--- 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 <esr@snark.thyrsus.com>, 1 Nov 88
+ * fix for little-endian machines 21 Oct 1996.
  */
 #include <stdio.h>
 #include <termio.h>
@@ -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);