Mercurial > pidgin
diff libpurple/protocols/simple/sipmsg.c @ 17082:7ade887fd3f6
Replace strcasecmp() calls with glib equivalents.
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Mon, 14 May 2007 23:35:50 +0000 |
parents | af92b284664a |
children | 44b4e8bd759b |
line wrap: on
line diff
--- a/libpurple/protocols/simple/sipmsg.c Mon May 14 23:35:28 2007 +0000 +++ b/libpurple/protocols/simple/sipmsg.c Mon May 14 23:35:50 2007 +0000 @@ -180,7 +180,7 @@ GSList *tmp = msg->headers; while(tmp) { elem = tmp->data; - if(strcasecmp(elem->name, name)==0) { + if(g_ascii_strcasecmp(elem->name, name)==0) { msg->headers = g_slist_remove(msg->headers, elem); g_free(elem->name); g_free(elem->value); @@ -198,7 +198,7 @@ tmp = msg->headers; while(tmp) { elem = tmp->data; - if(strcasecmp(elem->name, name)==0) { + if(g_ascii_strcasecmp(elem->name, name)==0) { return elem->value; } tmp = g_slist_next(tmp);