]> diplodocus.org Git - nmh/blobdiff - sbr/gans.c
Always initialize those two variables made static in commit
[nmh] / sbr / gans.c
index dcfb316c14914dcbde1b92744c753df72008dbe2..70234029ed9720754da058ef20f894ef04438dda 100644 (file)
@@ -2,7 +2,9 @@
 /*
  * gans.c -- get an answer from the user
  *
 /*
  * gans.c -- get an answer from the user
  *
- * $Id$
+ * This code is Copyright (c) 2002, by the authors of nmh.  See the
+ * COPYRIGHT file in the root directory of the nmh distribution for
+ * complete copyright information.
  */
 
 #include <h/mh.h>
  */
 
 #include <h/mh.h>
@@ -24,12 +26,7 @@ gans (char *prompt, struct swit *ansp)
            if (i == EOF)
                return 0;
            if (cp < &ansbuf[sizeof ansbuf - 1]) {
            if (i == EOF)
                return 0;
            if (cp < &ansbuf[sizeof ansbuf - 1]) {
-#ifdef LOCALE
                i = (isalpha(i) && isupper(i)) ? tolower(i) : i;
                i = (isalpha(i) && isupper(i)) ? tolower(i) : i;
-#else
-               if (i >= 'A' && i <= 'Z')
-                   i += 'a' - 'A';
-#endif
                *cp++ = i;
            }
        }
                *cp++ = i;
            }
        }