# HG changeset patch # User Matti Hamalainen # Date 1420642614 -7200 # Node ID c8e5949a8961fd5c3768c8cd03bb2ece75f8f068 # Parent 4bb6557c2b44773eefa27df0afe9609a171333fb Use th-libs functions. diff -r 4bb6557c2b44 -r c8e5949a8961 main.c --- a/main.c Mon Dec 15 19:56:13 2014 +0200 +++ b/main.c Wed Jan 07 16:56:54 2015 +0200 @@ -198,7 +198,7 @@ optProxyEnable = FALSE; // Handle disable case - if (strncasecmp(uri, "disab", 5) == 0) + if (th_strncasecmp(uri, "disab", 5) == 0) return TRUE; // Split the URI @@ -209,13 +209,13 @@ } // Validate proxy type - if (strcasecmp(proto, "socks4") == 0) + if (th_strcasecmp(proto, "socks4") == 0) optProxyType = TH_PROXY_SOCKS4; else - if (strcasecmp(proto, "socks4a") == 0) + if (th_strcasecmp(proto, "socks4a") == 0) optProxyType = TH_PROXY_SOCKS4A; else - if (strcasecmp(proto, "socks5") == 0) + if (th_strcasecmp(proto, "socks5") == 0) optProxyType = TH_PROXY_SOCKS5; else { @@ -333,7 +333,7 @@ { int i; for (i = 0; i < nn_room_data_n; i++) - if (!strcasecmp(nn_room_data[i].name, optArg)) + if (!th_strcasecmp(nn_room_data[i].name, optArg)) { optPort = nn_room_data[i].port; return TRUE;