X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/143a8571be23c8516242ca3919707f012ed255e4..0c1ab746fc2890dbabb7a0de58fd71fa6eee1c42:/sbr/read_switch.c diff --git a/sbr/read_switch.c b/sbr/read_switch.c index 4599a41c..bb24dd4c 100644 --- a/sbr/read_switch.c +++ b/sbr/read_switch.c @@ -13,9 +13,9 @@ int read_switch (const char *prompt, const struct swit *ansp) { - register int i; - register char *cp; - register const struct swit *ap; + int i; + char *cp; + const struct swit *ap; char ansbuf[BUFSIZ]; for (;;) { @@ -26,7 +26,7 @@ read_switch (const char *prompt, const struct swit *ansp) if (i == EOF) return 0; if (cp < &ansbuf[sizeof ansbuf - 1]) { - i = (isalpha(i) && isupper(i)) ? tolower(i) : i; + i = tolower(i); *cp++ = i; } }