diff options
author | qarkai <qarkai@gmail.com> | 2017-03-24 02:23:46 +0300 |
---|---|---|
committer | qarkai <qarkai@gmail.com> | 2017-03-24 02:23:46 +0300 |
commit | aa415b4537814485863797aaf4cdd1c55b579ae7 (patch) | |
tree | bac9c810db754170675eb051f016228bb4fd0960 /libpurple/win32 | |
parent | 6fda481b5ad738cbcd460df2025ef0a622dfb495 (diff) | |
download | pidgin-aa415b4537814485863797aaf4cdd1c55b579ae7.tar.gz |
Replace strcmp() with purple_strequal()
Didn't touch finch/libgnt files
Diffstat (limited to 'libpurple/win32')
-rw-r--r-- | libpurple/win32/libc_interface.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libpurple/win32/libc_interface.c b/libpurple/win32/libc_interface.c index 493dfca53f..96bea53568 100644 --- a/libpurple/win32/libc_interface.c +++ b/libpurple/win32/libc_interface.c @@ -933,7 +933,7 @@ wpurple_get_timezone_abbreviation(const struct tm *tm) for (i = 0; win32_tzmap[i].wstd != NULL; i++) { - if (strcmp(tzname, win32_tzmap[i].wstd) == 0) + if (purple_strequal(tzname, win32_tzmap[i].wstd)) { #if 0 purple_debug_info("wpurple", "TZ \"%s\" matches Windows timezone \"%s\"\n", @@ -949,7 +949,7 @@ wpurple_get_timezone_abbreviation(const struct tm *tm) return win32_tzmap[i].ustd; } - if (strcmp(tzname, win32_tzmap[i].wdst) == 0) + if (purple_strequal(tzname, win32_tzmap[i].wdst)) { #if 0 purple_debug_info("wpurple", "TZ \"%s\" matches Windows timezone \"%s\"\n", @@ -1023,7 +1023,7 @@ wpurple_get_timezone_abbreviation(const struct tm *tm) RegCloseKey(key); break; } - if (strcmp(tzname, zonename) == 0) + if (purple_strequal(tzname, zonename)) { /* Matched zone */ g_strlcpy(localtzname, keyname, sizeof(localtzname)); @@ -1038,7 +1038,7 @@ wpurple_get_timezone_abbreviation(const struct tm *tm) RegCloseKey(key); break; } - if (strcmp(tzname, zonename) == 0) + if (purple_strequal(tzname, zonename)) { /* Matched DST zone */ g_strlcpy(localtzname, keyname, sizeof(localtzname)); @@ -1056,7 +1056,7 @@ wpurple_get_timezone_abbreviation(const struct tm *tm) /* Found a localized name, so scan for that one too */ for (i = 0; win32_tzmap[i].wstd != NULL; i++) { - if (strcmp(localtzname, win32_tzmap[i].wstd) == 0) + if (purple_strequal(localtzname, win32_tzmap[i].wstd)) { #if 0 purple_debug_info("wpurple", "TZ \"%s\" matches localized Windows timezone \"%s\" (\"%s\")\n", @@ -1070,7 +1070,7 @@ wpurple_get_timezone_abbreviation(const struct tm *tm) return win32_tzmap[i].ustd; } - if (strcmp(localtzname, win32_tzmap[i].wdst) == 0) + if (purple_strequal(localtzname, win32_tzmap[i].wdst)) { #if 0 purple_debug_info("wpurple", "TZ \"%s\" matches localized Windows timezone \"%s\" (\"%s\")\n", |