changeset 14212:96a21828d3d4

[gaim-migrate @ 16893] Eradicate two compile warnings committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sat, 19 Aug 2006 21:41:25 +0000
parents 830a68fc9a54
children 28269422838f
files libgaim/privacy.c
diffstat 1 files changed, 5 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/libgaim/privacy.c	Sat Aug 19 20:02:26 2006 +0000
+++ b/libgaim/privacy.c	Sat Aug 19 21:41:25 2006 +0000
@@ -76,7 +76,7 @@
 						   gboolean local_only)
 {
 	GSList *l;
-	char *name;
+	const char *name;
 	GaimBuddy *buddy;
 
 	g_return_val_if_fail(account != NULL, FALSE);
@@ -158,20 +158,21 @@
 						 gboolean local_only)
 {
 	GSList *l;
+	const char *normalized;
 	char *name;
 	GaimBuddy *buddy;
 
 	g_return_val_if_fail(account != NULL, FALSE);
 	g_return_val_if_fail(who     != NULL, FALSE);
 
-	name = gaim_normalize(account, who);
+	normalized = gaim_normalize(account, who);
 
 	for (l = account->deny; l != NULL; l = l->next) {
-		if (!gaim_utf8_strcasecmp(name, (char *)l->data))
+		if (!gaim_utf8_strcasecmp(normalized, (char *)l->data))
 			break;
 	}
 
-	buddy = gaim_find_buddy(account, name);
+	buddy = gaim_find_buddy(account, normalized);
 
 	if (l == NULL)
 		return FALSE;