changeset 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 022a82d394c2
children e46321099396
files libpurple/roomlist.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/roomlist.c	Thu Aug 25 07:36:54 2011 +0000
+++ b/libpurple/roomlist.c	Fri Aug 26 05:00:46 2011 +0000
@@ -399,14 +399,14 @@
 
 gboolean purple_roomlist_room_get_expanded_once(PurpleRoomlistRoom *room)
 {
-	g_return_val_if_fail(room != NULL, NULL);
+	g_return_val_if_fail(room != NULL, FALSE);
 
 	return room->expanded_once;
 }
 
 void purple_roomlist_room_set_expanded_once(PurpleRoomlistRoom *room, gboolean expanded_once)
 {
-	g_return_val_if_fail(room != NULL, NULL);
+	g_return_if_fail(room != NULL);
 
 	room->expanded_once = expanded_once;
 }