Mercurial > pidgin.yaz
comparison libpurple/protocols/qq/qq.c @ 18808:f15bdcc44fc1
Fix a compile warning
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Mon, 06 Aug 2007 00:16:31 +0000 |
parents | b9a0b1bd321b |
children | 44b4e8bd759b 315151da0dc6 |
comparison
equal
deleted
inserted
replaced
18807:b9a0b1bd321b | 18808:f15bdcc44fc1 |
---|---|
193 /* a floating text when mouse is on the icon, show connection status here */ | 193 /* a floating text when mouse is on the icon, show connection status here */ |
194 static void _qq_tooltip_text(PurpleBuddy *b, PurpleNotifyUserInfo *user_info, gboolean full) | 194 static void _qq_tooltip_text(PurpleBuddy *b, PurpleNotifyUserInfo *user_info, gboolean full) |
195 { | 195 { |
196 qq_buddy *q_bud; | 196 qq_buddy *q_bud; |
197 gchar *ip_str; | 197 gchar *ip_str; |
198 const char *tmp; | 198 char *tmp; |
199 char *tmp2; | 199 const char *tmp2; |
200 | 200 |
201 g_return_if_fail(b != NULL); | 201 g_return_if_fail(b != NULL); |
202 | 202 |
203 q_bud = (qq_buddy *) b->proto_data; | 203 q_bud = (qq_buddy *) b->proto_data; |
204 g_return_if_fail(q_bud != NULL); | 204 g_return_if_fail(q_bud != NULL); |
206 if (PURPLE_BUDDY_IS_ONLINE(b) && q_bud != NULL) | 206 if (PURPLE_BUDDY_IS_ONLINE(b) && q_bud != NULL) |
207 { | 207 { |
208 ip_str = gen_ip_str(q_bud->ip); | 208 ip_str = gen_ip_str(q_bud->ip); |
209 if (strlen(ip_str) != 0) { | 209 if (strlen(ip_str) != 0) { |
210 if (q_bud->comm_flag & QQ_COMM_FLAG_TCP_MODE) | 210 if (q_bud->comm_flag & QQ_COMM_FLAG_TCP_MODE) |
211 tmp = _("TCP Address"); | 211 tmp2 = _("TCP Address"); |
212 else | 212 else |
213 tmp = _("UDP Address"); | 213 tmp2 = _("UDP Address"); |
214 tmp2 = g_strdup_printf("%s:%d", ip_str, q_bud->port); | 214 tmp = g_strdup_printf("%s:%d", ip_str, q_bud->port); |
215 purple_notify_user_info_add_pair(user_info, tmp, tmp2); | 215 purple_notify_user_info_add_pair(user_info, tmp2, tmp); |
216 g_free(tmp2); | 216 g_free(tmp); |
217 } | 217 } |
218 g_free(ip_str); | 218 g_free(ip_str); |
219 | 219 |
220 tmp = g_strdup_printf("%d", q_bud->age); | 220 tmp = g_strdup_printf("%d", q_bud->age); |
221 purple_notify_user_info_add_pair(user_info, _("Age"), tmp); | 221 purple_notify_user_info_add_pair(user_info, _("Age"), tmp); |