comparison 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
comparison
equal deleted inserted replaced
13087:a62e694b35e4 13088:a91a8a28f61f
263 static gchar *auth_header(struct simple_account_data *sip, struct sip_auth *auth, gchar *method, gchar *target) { 263 static gchar *auth_header(struct simple_account_data *sip, struct sip_auth *auth, gchar *method, gchar *target) {
264 gchar noncecount[9]; 264 gchar noncecount[9];
265 gchar *response; 265 gchar *response;
266 gchar *ret; 266 gchar *ret;
267 gchar *tmp; 267 gchar *tmp;
268 char *authdomain = gaim_account_get_string(sip->account, "authdomain", ""); 268 const char *authdomain;
269 char *authuser = gaim_account_get_string(sip->account, "authuser", sip->username); 269 const char *authuser;
270
271 authdomain = gaim_account_get_string(sip->account, "authdomain", "");
272 authuser = gaim_account_get_string(sip->account, "authuser", sip->username);
273
270 if(!authuser || strlen(authuser)<1) { 274 if(!authuser || strlen(authuser)<1) {
271 authuser = sip->username; 275 authuser = sip->username;
272 } 276 }
273 277
274 if(auth->type == 1) { /* Digest */ 278 if(auth->type == 1) { /* Digest */
319 return retval; 323 return retval;
320 } 324 }
321 325
322 static void fill_auth(struct simple_account_data *sip, gchar *hdr, struct sip_auth *auth) { 326 static void fill_auth(struct simple_account_data *sip, gchar *hdr, struct sip_auth *auth) {
323 int i=0; 327 int i=0;
324 char *authuser = gaim_account_get_string(sip->account, "authuser", sip->username); 328 const char *authuser;
325 char *tmp; 329 char *tmp;
326 gchar **parts; 330 gchar **parts;
327 331
332 authuser = gaim_account_get_string(sip->account, "authuser", sip->username);
333
328 if(!authuser || strlen(authuser)<1) { 334 if(!authuser || strlen(authuser)<1) {
329 authuser = sip->username; 335 authuser = sip->username;
330 } 336 }
331 337
332 if(!hdr) { 338 if(!hdr) {
333 gaim_debug_error("simple", "fill_auth: hdr==NULL\n"); 339 gaim_debug_error("simple", "fill_auth: hdr==NULL\n");
334 return; 340 return;
335 } 341 }
336 342