pidgin: 3e071df6: Remove usage of g_strcmp0 (which would b...
wabz at pidgin.im
wabz at pidgin.im
Mon Apr 6 09:20:43 EDT 2009
-----------------------------------------------------------------
Revision: 3e071df6d421d193c1bec1dea8606e1a059bcb02
Ancestor: 4545104f42d520fa38246ab7e84d665acae5f424
Author: wabz at pidgin.im
Date: 2009-04-06T13:18:36
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/3e071df6d421d193c1bec1dea8606e1a059bcb02
Modified files:
finch/plugins/gnttinyurl.c
ChangeLog:
Remove usage of g_strcmp0 (which would bump the glib version requirement) where strcmp will do nicely
-------------- next part --------------
============================================================
--- finch/plugins/gnttinyurl.c 8d8a3049bc2ff7bd41db7da65124f424f2e36f6a
+++ finch/plugins/gnttinyurl.c 6f8de2d3456aacd27432af69276fbae23ba8b148
@@ -140,7 +140,7 @@ static GList *extract_urls(char *text) {
}
url_buf = g_strndup(c, t - c);
- if (!g_list_find_custom(ret, url_buf, (GCompareFunc)g_strcmp0)) {
+ if (!g_list_find_custom(ret, url_buf, (GCompareFunc)strcmp)) {
purple_debug_info("TinyURL", "Added URL %s\n", url_buf);
ret = g_list_append(ret, g_strdup(url_buf));
}
@@ -170,7 +170,7 @@ static GList *extract_urls(char *text) {
t--;
}
url_buf = g_strndup(c, t - c);
- if (!g_list_find_custom(ret, url_buf, (GCompareFunc)g_strcmp0)) {
+ if (!g_list_find_custom(ret, url_buf, (GCompareFunc)strcmp)) {
purple_debug_info("TinyURL", "Added URL %s\n", url_buf);
ret = g_list_append(ret, url_buf);
}
More information about the Commits
mailing list