Mercurial > pidgin.yaz
diff 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 |
line wrap: on
line diff
--- a/src/protocols/silc/ops.c Sat Sep 10 17:20:36 2005 +0000 +++ b/src/protocols/silc/ops.c Sat Sep 10 17:28:04 2005 +0000 @@ -762,7 +762,7 @@ case SILC_COMMAND_CMODE: if (cmd_context->argc == 3 && - !strcmp(cmd_context->argv[2], "+C")) + !strcmp((char *)cmd_context->argv[2], "+C")) sg->chpk = TRUE; else sg->chpk = FALSE; @@ -1045,7 +1045,7 @@ != SILC_LIST_END) { SilcUInt32 name_len; char *m = silc_client_chumode_char(umodes[i++]); - char *name = silc_channel_get_name(entry, &name_len); + char *name = (char *)silc_channel_get_name(entry, &name_len); if (m) silc_strncat(tmp, sizeof(tmp) - 1, m, strlen(m)); silc_strncat(tmp, sizeof(tmp) - 1, name, name_len); @@ -1618,7 +1618,7 @@ } password = gaim_connection_get_password(gc); if (password && *password) { - completion(TRUE, SILC_AUTH_PASSWORD, password, strlen(password), context); + completion(TRUE, SILC_AUTH_PASSWORD, (unsigned char *)password, strlen(password), context); return; } @@ -1832,7 +1832,7 @@ /* Save the detachment data to file. */ file = silcgaim_session_file(gaim_account_get_username(sg->account)); g_unlink(file); - silc_file_writefile(file, detach_data, detach_data_len); + silc_file_writefile(file, (char *)detach_data, detach_data_len); } SilcClientOperations ops = {