# HG changeset patch # User Matti Hamalainen # Date 1423448298 -7200 # Node ID a69764b4305f7b4bbeafd786e0fa59438564eeb8 # Parent fc914ff7a9b82ecd38a901eb3076334273cbe4bc Simplify. diff -r fc914ff7a9b8 -r a69764b4305f th_config.c --- a/th_config.c Sat Feb 07 02:55:54 2015 +0200 +++ b/th_config.c Mon Feb 09 04:18:18 2015 +0200 @@ -613,20 +613,16 @@ BOOL tmpBool = FALSE; // End of boolean parsing - switch (tmpCh) + switch (th_toupper(tmpCh)) { case 'Y': - case 'y': case 'T': - case 't': case '1': tmpBool = TRUE; break; case 'N': - case 'n': case 'F': - case 'f': case '0': tmpBool = FALSE; break;