view libpurple/plugins/mono/loader/debug-glue.c @ 31955:cd7dcd0beafa

Fix two compile warnings. Did I do that? I totally didn't notice. My bad. roomlist.c: In function ?purple_roomlist_room_get_expanded_once?: roomlist.c:402:2: warning: return makes integer from pointer without a cast roomlist.c: In function ?purple_roomlist_room_set_expanded_once?: roomlist.c:409:2: warning: ?return? with a value, in function returning void
author Mark Doliner <mark@kingant.net>
date Fri, 26 Aug 2011 05:00:46 +0000
parents a8cc50c2279f
children
line wrap: on
line source

#include "mono-glue.h"
#include "debug.h"

void purple_debug_glue(int type, MonoString *cat, MonoString *str)
{
	char *ccat;
	char *cstr;

	ccat = mono_string_to_utf8(cat);
	cstr = mono_string_to_utf8(str);

	purple_debug(type, ccat, "%s", cstr);

	g_free(ccat);
	g_free(cstr);
}