pidgin.openq: 59647931: Change Qun number to unsigned long

ccpaging at pidgin.im ccpaging at pidgin.im
Wed Dec 3 23:21:06 EST 2008


-----------------------------------------------------------------
Revision: 596479315cce1fda89c9f97826aecd9461854e33
Ancestor: b0bd773b50ec8e59e018da08848857281347c930
Author: ccpaging at pidgin.im
Date: 2008-11-11T07:09:08
Branch: im.pidgin.pidgin.openq
URL: http://d.pidgin.im/viewmtn/revision/info/596479315cce1fda89c9f97826aecd9461854e33

Modified files:
        libpurple/protocols/qq/group_info.c

ChangeLog: 

Change Qun number to unsigned long

-------------- next part --------------
============================================================
--- libpurple/protocols/qq/group_info.c	fe4f3cd365955b009e167df30c506f2df910c8c4
+++ libpurple/protocols/qq/group_info.c	ae6ab8f23ea429e88e582e1117f36202ad21c17d
@@ -144,7 +144,7 @@ static void room_info_display(PurpleConn
 
 	purple_notify_user_info_add_section_break(room_info);
 
-	utf8_value = g_strdup_printf(("%d"), rmd->creator_uid);
+	utf8_value = g_strdup_printf(("%u"), rmd->creator_uid);
 	purple_notify_user_info_add_pair(room_info, _("Creator"), utf8_value);
 	g_free(utf8_value);
 
@@ -160,7 +160,7 @@ static void room_info_display(PurpleConn
 	purple_notify_user_info_add_pair(room_info, _("Authorize"), utf8_value);
 	g_free(utf8_value);
 
-	utf8_value = g_strdup_printf(("%d"), rmd->ext_id);
+	utf8_value = g_strdup_printf(("%u"), rmd->ext_id);
 	purple_notify_userinfo(gc, utf8_value, room_info, NULL, NULL);
 	g_free(utf8_value);
 
@@ -241,7 +241,7 @@ void qq_process_room_cmd_get_info(guint8
 
 #if 0
 		if(organization != 0 || role != 0) {
-			purple_debug_info("QQ_GRP", "%d, organization=%d, role=%d\n", member_uid, organization, role);
+			purple_debug_info("QQ", "%u, organization=%d, role=%d\n", member_uid, organization, role);
 		}
 #endif
 
@@ -277,7 +277,7 @@ void qq_process_room_cmd_get_info(guint8
 		return;
 	}
 
-	topic_utf8 = g_strdup_printf("%d %s", rmd->ext_id, rmd->notice_utf8);
+	topic_utf8 = g_strdup_printf("%u %s", rmd->ext_id, rmd->notice_utf8);
 	purple_debug_info("QQ", "Set chat topic to %s\n", topic_utf8);
 	purple_conv_chat_set_topic(PURPLE_CONV_CHAT(conv), NULL, topic_utf8);
 	g_free(topic_utf8);
@@ -285,7 +285,7 @@ void qq_process_room_cmd_get_onlines(gui
 
 void qq_process_room_cmd_get_onlines(guint8 *data, gint len, PurpleConnection *gc)
 {
-	guint32 id, member_uid;
+	guint32 room_id, member_uid;
 	guint8 unknown;
 	gint bytes, num;
 	qq_room_data *rmd;
@@ -299,13 +299,13 @@ void qq_process_room_cmd_get_onlines(gui
 	}
 
 	bytes = 0;
-	bytes += qq_get32(&id, data + bytes);
+	bytes += qq_get32(&room_id, data + bytes);
 	bytes += qq_get8(&unknown, data + bytes);	/* 0x3c ?? */
-	g_return_if_fail(id > 0);
+	g_return_if_fail(room_id > 0);
 
-	rmd = qq_room_data_find(gc, id);
+	rmd = qq_room_data_find(gc, room_id);
 	if (rmd == NULL) {
-		purple_debug_error("QQ", "We have no group info for internal id [%d]\n", id);
+		purple_debug_error("QQ", "Can not info of room id [%u]\n", room_id);
 		return;
 	}
 


More information about the Commits mailing list