]> thyrsus.com Git - showkey.git/commitdiff
Consistency fix.
authorEric S. Raymond <esr@thyrsus.com>
Thu, 21 Oct 2010 23:21:57 +0000 (19:21 -0400)
committerEric S. Raymond <esr@thyrsus.com>
Thu, 21 Oct 2010 23:21:57 +0000 (19:21 -0400)
showkey.c

index d6aa4d46fd7c755650d438b09c38e34a4016cd8b..9de84d70060bf1ff3377bb37ed0074a366677efe 100644 (file)
--- a/showkey.c
+++ b/showkey.c
@@ -35,7 +35,7 @@ THE SOFTWARE.<P>
 #include <signal.h>
 #include <string.h>
 
-#define META   0x80
+#define ALT    0x80
 #define ESC    0x1b
 
 static char *lowchars[] =
@@ -57,18 +57,18 @@ static void catcher(const int sig)
 char *visualize(int c)
 {
     static char buf[32];
-    int meta;
+    int alt;
 
-    if (meta = (c & META))
-       c &=~ META;
+    if (alt = (c & ALT))
+       c &=~ ALT;
 
     if (c <= ' ')
        (void) snprintf(buf, sizeof(buf), 
-                       "<%s%s>", meta ? "ALT-" : "", lowchars[c]);
+                       "<%s%s>", alt ? "ALT-" : "", lowchars[c]);
     else if (c == 0x3F)
        (void) snprintf(buf, sizeof(buf),
-                       "<%sDEL>", meta ? "ALT-" : "");
-    else if (meta)
+                       "<%sDEL>", alt ? "ALT-" : "");
+    else if (alt)
        (void) snprintf(buf, sizeof(buf), 
                        "<ALT-%c>", c);
     else {