Mercurial > pidgin.yaz
changeset 18808:f15bdcc44fc1
Fix a compile warning
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Mon, 06 Aug 2007 00:16:31 +0000 |
parents | b9a0b1bd321b |
children | 6af9201ac685 |
files | libpurple/protocols/qq/qq.c |
diffstat | 1 files changed, 7 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/protocols/qq/qq.c Mon Aug 06 00:14:47 2007 +0000 +++ b/libpurple/protocols/qq/qq.c Mon Aug 06 00:16:31 2007 +0000 @@ -195,8 +195,8 @@ { qq_buddy *q_bud; gchar *ip_str; - const char *tmp; - char *tmp2; + char *tmp; + const char *tmp2; g_return_if_fail(b != NULL); @@ -208,12 +208,12 @@ ip_str = gen_ip_str(q_bud->ip); if (strlen(ip_str) != 0) { if (q_bud->comm_flag & QQ_COMM_FLAG_TCP_MODE) - tmp = _("TCP Address"); + tmp2 = _("TCP Address"); else - tmp = _("UDP Address"); - tmp2 = g_strdup_printf("%s:%d", ip_str, q_bud->port); - purple_notify_user_info_add_pair(user_info, tmp, tmp2); - g_free(tmp2); + tmp2 = _("UDP Address"); + tmp = g_strdup_printf("%s:%d", ip_str, q_bud->port); + purple_notify_user_info_add_pair(user_info, tmp2, tmp); + g_free(tmp); } g_free(ip_str);