comparison libpurple/protocols/simple/simple.c @ 31534:a8cc50c2279f

Remove trailing whitespace
author Richard Laager <rlaager@wiktel.com>
date Tue, 04 Jan 2011 06:55:30 +0000
parents 2a436e0ce977
children 7c33eaed54e5
comparison
equal deleted inserted replaced
31533:44f53d3fc54f 31534:a8cc50c2279f
393 i++; 393 i++;
394 } 394 }
395 g_strfreev(parts); 395 g_strfreev(parts);
396 purple_debug(PURPLE_DEBUG_MISC, "simple", "nonce: %s realm: %s\n", 396 purple_debug(PURPLE_DEBUG_MISC, "simple", "nonce: %s realm: %s\n",
397 auth->nonce ? auth->nonce : "(null)", 397 auth->nonce ? auth->nonce : "(null)",
398 auth->realm ? auth->realm : "(null)"); 398 auth->realm ? auth->realm : "(null)");
399 399
400 if(auth->realm) { 400 if(auth->realm) {
401 auth->digest_session_key = purple_cipher_http_digest_calculate_session_key( 401 auth->digest_session_key = purple_cipher_http_digest_calculate_session_key(
402 "md5", authuser, auth->realm, sip->password, auth->nonce, NULL); 402 "md5", authuser, auth->realm, sip->password, auth->nonce, NULL);
403 403
794 b->dialog = g_new0(struct sip_dialog, 1); 794 b->dialog = g_new0(struct sip_dialog, 1);
795 b->dialog->ourtag = g_strdup(ourtag); 795 b->dialog->ourtag = g_strdup(ourtag);
796 b->dialog->theirtag = g_strdup(theirtag); 796 b->dialog->theirtag = g_strdup(theirtag);
797 b->dialog->callid = g_strdup(callid); 797 b->dialog->callid = g_strdup(callid);
798 798
799 purple_debug_info("simple", "ourtag: %s\n", 799 purple_debug_info("simple", "ourtag: %s\n",
800 ourtag); 800 ourtag);
801 purple_debug_info("simple", "theirtag: %s\n", 801 purple_debug_info("simple", "theirtag: %s\n",
802 theirtag); 802 theirtag);
803 purple_debug_info("simple", "callid: %s\n", 803 purple_debug_info("simple", "callid: %s\n",
804 callid); 804 callid);
805 g_free(theirtag); 805 g_free(theirtag);
806 g_free(ourtag); 806 g_free(ourtag);
807 } 807 }
808 } 808 }
980 if(sip->reregister < curtime) { 980 if(sip->reregister < curtime) {
981 do_register(sip); 981 do_register(sip);
982 } 982 }
983 983
984 /* publish status again if our last update is about to expire. */ 984 /* publish status again if our last update is about to expire. */
985 if (sip->republish != -1 && 985 if (sip->republish != -1 &&
986 sip->republish < curtime && 986 sip->republish < curtime &&
987 purple_account_get_bool(sip->account, "dopublish", TRUE)) 987 purple_account_get_bool(sip->account, "dopublish", TRUE))
988 { 988 {
989 purple_debug_info("simple", "subscribe_timeout: republishing status.\n"); 989 purple_debug_info("simple", "subscribe_timeout: republishing status.\n");
990 send_open_publish(sip); 990 send_open_publish(sip);
1270 1270
1271 if(strstr(basicstatus_data, "open")) 1271 if(strstr(basicstatus_data, "open"))
1272 isonline = TRUE; 1272 isonline = TRUE;
1273 1273
1274 1274
1275 if(isonline) 1275 if(isonline)
1276 purple_prpl_got_user_status(sip->account, from, "available", NULL); 1276 purple_prpl_got_user_status(sip->account, from, "available", NULL);
1277 else 1277 else
1278 purple_prpl_got_user_status(sip->account, from, "offline", NULL); 1278 purple_prpl_got_user_status(sip->account, from, "offline", NULL);
1279 1279
1280 xmlnode_free(pidf); 1280 xmlnode_free(pidf);
1281 g_free(from); 1281 g_free(from);
1282 g_free(basicstatus_data); 1282 g_free(basicstatus_data);