* 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>
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);