diff src/protocols/simple/simple.c @ 13088:a91a8a28f61f

[gaim-migrate @ 15450] Compile warning fixes committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Wed, 01 Feb 2006 06:04:22 +0000
parents 3382d7aa9ca3
children edef744647ff
line wrap: on
line diff
--- a/src/protocols/simple/simple.c	Tue Jan 31 22:00:34 2006 +0000
+++ b/src/protocols/simple/simple.c	Wed Feb 01 06:04:22 2006 +0000
@@ -265,8 +265,12 @@
 	gchar *response;
 	gchar *ret;
 	gchar *tmp;
-	char *authdomain = gaim_account_get_string(sip->account, "authdomain", "");
-	char *authuser = gaim_account_get_string(sip->account, "authuser", sip->username);
+	const char *authdomain;
+	const char *authuser;
+
+	authdomain = gaim_account_get_string(sip->account, "authdomain", "");
+	authuser = gaim_account_get_string(sip->account, "authuser", sip->username);
+
 	if(!authuser || strlen(authuser)<1) {
 		authuser = sip->username;
 	}
@@ -321,14 +325,16 @@
 
 static void fill_auth(struct simple_account_data *sip, gchar *hdr, struct sip_auth *auth) {
 	int i=0;
-	char *authuser = gaim_account_get_string(sip->account, "authuser", sip->username);
+	const char *authuser;
 	char *tmp;
 	gchar **parts;
 
+	authuser = gaim_account_get_string(sip->account, "authuser", sip->username);
+
 	if(!authuser || strlen(authuser)<1) {
 		authuser = sip->username;
 	}
-	
+
 	if(!hdr) {
 		gaim_debug_error("simple", "fill_auth: hdr==NULL\n");
 		return;