comparison src/protocols/silc/ops.c @ 11488:9c7ca8a8c4b8

[gaim-migrate @ 13730] Fix a bunch of compile warnings, and fix going offline actually disconnecting the account in SILC committer: Tailor Script <tailor@pidgin.im>
author Stu Tomlinson <stu@nosnilmot.com>
date Sat, 10 Sep 2005 17:28:04 +0000
parents 17142948653e
children 9fc7d0153332
comparison
equal deleted inserted replaced
11487:4b021f78c1ed 11488:9c7ca8a8c4b8
760 760
761 switch (command) { 761 switch (command) {
762 762
763 case SILC_COMMAND_CMODE: 763 case SILC_COMMAND_CMODE:
764 if (cmd_context->argc == 3 && 764 if (cmd_context->argc == 3 &&
765 !strcmp(cmd_context->argv[2], "+C")) 765 !strcmp((char *)cmd_context->argv[2], "+C"))
766 sg->chpk = TRUE; 766 sg->chpk = TRUE;
767 else 767 else
768 sg->chpk = FALSE; 768 sg->chpk = FALSE;
769 break; 769 break;
770 770
1043 silc_dlist_start(list); 1043 silc_dlist_start(list);
1044 while ((entry = silc_dlist_get(list)) 1044 while ((entry = silc_dlist_get(list))
1045 != SILC_LIST_END) { 1045 != SILC_LIST_END) {
1046 SilcUInt32 name_len; 1046 SilcUInt32 name_len;
1047 char *m = silc_client_chumode_char(umodes[i++]); 1047 char *m = silc_client_chumode_char(umodes[i++]);
1048 char *name = silc_channel_get_name(entry, &name_len); 1048 char *name = (char *)silc_channel_get_name(entry, &name_len);
1049 if (m) 1049 if (m)
1050 silc_strncat(tmp, sizeof(tmp) - 1, m, strlen(m)); 1050 silc_strncat(tmp, sizeof(tmp) - 1, m, strlen(m));
1051 silc_strncat(tmp, sizeof(tmp) - 1, name, name_len); 1051 silc_strncat(tmp, sizeof(tmp) - 1, name, name_len);
1052 silc_strncat(tmp, sizeof(tmp) - 1, " ", 1); 1052 silc_strncat(tmp, sizeof(tmp) - 1, " ", 1);
1053 silc_free(m); 1053 silc_free(m);
1616 completion(TRUE, SILC_AUTH_PUBLIC_KEY, NULL, 0, context); 1616 completion(TRUE, SILC_AUTH_PUBLIC_KEY, NULL, 0, context);
1617 return; 1617 return;
1618 } 1618 }
1619 password = gaim_connection_get_password(gc); 1619 password = gaim_connection_get_password(gc);
1620 if (password && *password) { 1620 if (password && *password) {
1621 completion(TRUE, SILC_AUTH_PASSWORD, password, strlen(password), context); 1621 completion(TRUE, SILC_AUTH_PASSWORD, (unsigned char *)password, strlen(password), context);
1622 return; 1622 return;
1623 } 1623 }
1624 1624
1625 /* Resolve the authentication method from server, as we may not know it. */ 1625 /* Resolve the authentication method from server, as we may not know it. */
1626 internal = silc_calloc(1, sizeof(*internal)); 1626 internal = silc_calloc(1, sizeof(*internal));
1830 const char *file; 1830 const char *file;
1831 1831
1832 /* Save the detachment data to file. */ 1832 /* Save the detachment data to file. */
1833 file = silcgaim_session_file(gaim_account_get_username(sg->account)); 1833 file = silcgaim_session_file(gaim_account_get_username(sg->account));
1834 g_unlink(file); 1834 g_unlink(file);
1835 silc_file_writefile(file, detach_data, detach_data_len); 1835 silc_file_writefile(file, (char *)detach_data, detach_data_len);
1836 } 1836 }
1837 1837
1838 SilcClientOperations ops = { 1838 SilcClientOperations ops = {
1839 silc_say, 1839 silc_say,
1840 silc_channel_message, 1840 silc_channel_message,