comparison libpurple/protocols/msn/msn.c @ 18058:4ca97b26a8fb

Mark the return type const for the following functions. I noticed this while fixing some DBus stuff which I'll commit shortly. * purple_accounts_get_all * purple_connections_get_all * purple_connections_get_connecting * purple_conv_chat_get_ignored * purple_conv_chat_get_users * purple_get_chats * purple_get_conversations * purple_get_ims * purple_notify_user_info_get_entries References #1344
author Richard Laager <rlaager@wiktel.com>
date Thu, 07 Jun 2007 04:22:42 +0000
parents 02abb6713cf2
children 926ccb104da0 69febfa6d307
comparison
equal deleted inserted replaced
18057:23b03396e71e 18058:4ca97b26a8fb
1461 #endif 1461 #endif
1462 1462
1463 purple_debug_info("msn", "In msn_got_info\n"); 1463 purple_debug_info("msn", "In msn_got_info\n");
1464 1464
1465 /* Make sure the connection is still valid */ 1465 /* Make sure the connection is still valid */
1466 if (g_list_find(purple_connections_get_all(), info_data->gc) == NULL) 1466 if (g_list_find((GList *)purple_connections_get_all(), info_data->gc) == NULL)
1467 { 1467 {
1468 purple_debug_warning("msn", "invalid connection. ignoring buddy info.\n"); 1468 purple_debug_warning("msn", "invalid connection. ignoring buddy info.\n");
1469 g_free(info_data->name); 1469 g_free(info_data->name);
1470 g_free(info_data); 1470 g_free(info_data);
1471 return; 1471 return;
1881 PurpleNotifyUserInfo *user_info = info2_data->user_info; 1881 PurpleNotifyUserInfo *user_info = info2_data->user_info;
1882 char *photo_url_text = info2_data->photo_url_text; 1882 char *photo_url_text = info2_data->photo_url_text;
1883 1883
1884 /* Make sure the connection is still valid if we got here by fetching a photo url */ 1884 /* Make sure the connection is still valid if we got here by fetching a photo url */
1885 if (url_text && (error_message != NULL || 1885 if (url_text && (error_message != NULL ||
1886 g_list_find(purple_connections_get_all(), info_data->gc) == NULL)) 1886 g_list_find((GList *)purple_connections_get_all(), info_data->gc) == NULL))
1887 { 1887 {
1888 purple_debug_warning("msn", "invalid connection. ignoring buddy photo info.\n"); 1888 purple_debug_warning("msn", "invalid connection. ignoring buddy photo info.\n");
1889 g_free(stripped); 1889 g_free(stripped);
1890 g_free(url_buffer); 1890 g_free(url_buffer);
1891 g_free(user_info); 1891 g_free(user_info);
1980 if (acct_id) { 1980 if (acct_id) {
1981 acct = purple_accounts_find(acct_id, prpl); 1981 acct = purple_accounts_find(acct_id, prpl);
1982 if (acct && !purple_account_is_connected(acct)) 1982 if (acct && !purple_account_is_connected(acct))
1983 acct = NULL; 1983 acct = NULL;
1984 } else { /* Otherwise find an active account for the protocol */ 1984 } else { /* Otherwise find an active account for the protocol */
1985 GList *l = purple_accounts_get_all(); 1985 const GList *l = purple_accounts_get_all();
1986 while (l) { 1986 while (l) {
1987 if (!strcmp(prpl, purple_account_get_protocol_id(l->data)) 1987 if (!strcmp(prpl, purple_account_get_protocol_id(l->data))
1988 && purple_account_is_connected(l->data)) { 1988 && purple_account_is_connected(l->data)) {
1989 acct = l->data; 1989 acct = l->data;
1990 break; 1990 break;