Mercurial > pidgin
diff libpurple/protocols/yahoo/libymsg.c @ 29082:39716f7d2c93
Kill off unneeded GLIB_CHECK_VERSION checks in libpurple. Refs #10024.
author | John Bailey <rekkanoryo@rekkanoryo.org> |
---|---|
date | Sat, 22 Aug 2009 21:47:20 +0000 |
parents | 74958cad186d |
children | 15b1cc2e8b74 |
line wrap: on
line diff
--- a/libpurple/protocols/yahoo/libymsg.c Sat Aug 22 18:54:15 2009 +0000 +++ b/libpurple/protocols/yahoo/libymsg.c Sat Aug 22 21:47:20 2009 +0000 @@ -1679,11 +1679,8 @@ char *crumb = NULL; char *crypt = NULL; -#if GLIB_CHECK_VERSION(2,6,0) totalelements = g_strv_length(split_data); -#else - while (split_data[++totalelements] != NULL); -#endif + if (totalelements >= 4) { response_no = strtol(split_data[0], NULL, 10); crumb = g_strdup(split_data[1] + strlen("crumb=")); @@ -1765,11 +1762,8 @@ int response_no = -1; char *token = NULL; -#if GLIB_CHECK_VERSION(2,6,0) totalelements = g_strv_length(split_data); -#else - while (split_data[++totalelements] != NULL); -#endif + if(totalelements == 1) response_no = strtol(split_data[0], NULL, 10); else if(totalelements >= 2) {