diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2010-10-31 18:23:16 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2010-10-31 18:23:16 +0100 |
commit | ac6b299e8b95420de749daed2c93b9ff516c71cb (patch) | |
tree | 87966190199f96f719d2bcfecd40795fdaa9e1b4 /src/plugins/irc | |
parent | 06b48ccf8367ab4433fd7e0b3bcd26afb635ff92 (diff) | |
download | weechat-ac6b299e8b95420de749daed2c93b9ff516c71cb.zip |
Remove dead assignments
Diffstat (limited to 'src/plugins/irc')
-rw-r--r-- | src/plugins/irc/irc-mode.c | 2 | ||||
-rw-r--r-- | src/plugins/irc/irc-sasl.c | 3 | ||||
-rw-r--r-- | src/plugins/irc/irc-server.c | 1 |
3 files changed, 0 insertions, 6 deletions
diff --git a/src/plugins/irc/irc-mode.c b/src/plugins/irc/irc-mode.c index ee02e2c3a..727fc0772 100644 --- a/src/plugins/irc/irc-mode.c +++ b/src/plugins/irc/irc-mode.c @@ -104,8 +104,6 @@ irc_mode_channel_set (struct t_irc_server *server, set_flag = '-'; break; case 'b': /* ban (ignored) */ - ptr_arg = ((current_arg >= 0) && (current_arg < argc)) ? - argv[current_arg] : NULL; current_arg++; break; case 'k': /* channel key */ diff --git a/src/plugins/irc/irc-sasl.c b/src/plugins/irc/irc-sasl.c index 076eb9f81..4f39c1bc4 100644 --- a/src/plugins/irc/irc-sasl.c +++ b/src/plugins/irc/irc-sasl.c @@ -146,8 +146,6 @@ irc_sasl_mechanism_dh_blowfish (const char *data_base64, goto end; data_server_pub_key = gcry_mpi_new (size * 8); gcry_mpi_scan (&data_server_pub_key, GCRYMPI_FMT_USG, ptr_data, size, NULL); - ptr_data += size; - length_data -= size; /* generate keys */ pub_key = gcry_mpi_new (num_bits_prime_number); @@ -208,7 +206,6 @@ irc_sasl_mechanism_dh_blowfish (const char *data_base64, memcpy (ptr_answer, sasl_username, length_username + 1); ptr_answer += length_username + 1; memcpy (ptr_answer, password_crypted, length_password); - ptr_answer += length_password; /* encode answer to base64 */ answer_base64 = malloc (length_answer * 2); diff --git a/src/plugins/irc/irc-server.c b/src/plugins/irc/irc-server.c index b1c04983a..de005d823 100644 --- a/src/plugins/irc/irc-server.c +++ b/src/plugins/irc/irc-server.c @@ -908,7 +908,6 @@ irc_server_apply_command_line_options (struct t_irc_server *server, if (argv[i][0] == '-') { pos = strchr (argv[i], '='); - ptr_value = value_boolean[0]; if (pos) { option_name = weechat_strndup (argv[i] + 1, pos - argv[i] - 1); |