aboutsummaryrefslogtreecommitdiffstats
path: root/rc.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--rc.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/rc.c b/rc.c
index 0312612..39d4a6a 100644
--- a/rc.c
+++ b/rc.c
@@ -1,4 +1,4 @@
-/* $Id: rc.c,v 1.72 2002/12/18 16:42:31 ukai Exp $ */
+/* $Id: rc.c,v 1.73 2002/12/24 17:20:48 ukai Exp $ */
/*
* Initialization file etc.
*/
@@ -991,18 +991,18 @@ str_to_bool(char *value, int old)
{
if (value == NULL)
return 1;
- switch (tolower(*value)) {
+ switch (TOLOWER(*value)) {
case '0':
case 'f': /* false */
case 'n': /* no */
case 'u': /* undef */
return 0;
case 'o':
- if (tolower(value[1]) == 'f') /* off */
+ if (TOLOWER(value[1]) == 'f') /* off */
return 0;
return 1; /* on */
case 't':
- if (tolower(value[1]) == 'o') /* toggle */
+ if (TOLOWER(value[1]) == 'o') /* toggle */
return !old;
return 1; /* true */
case '!':
@@ -1019,7 +1019,7 @@ str_to_color(char *value)
{
if (value == NULL)
return 8; /* terminal */
- switch (tolower(*value)) {
+ switch (TOLOWER(*value)) {
case '0':
return 0; /* black */
case '1':