Skip to content

Commit

Permalink
cli: Compile fixes for gcc 4.6
Browse files Browse the repository at this point in the history
Original patch by:
Jose Manuel dos Santos Calhariz <jose.spam@netvisao.pt>

Signed-off-by: Ben Greear <greearb@candelatech.com>
  • Loading branch information
greearb committed Jul 25, 2011
1 parent 8c4c750 commit 755ecb8
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions xorp/cli/cli_client.cc
Expand Up @@ -1349,7 +1349,6 @@ CliClient::process_command(const string& command_line)
CliCommand *parent_cli_command = current_cli_command();
CliCommand *child_cli_command = NULL;
int syntax_error_offset_next = current_cli_prompt().size();
int syntax_error_offset_prev = syntax_error_offset_next;
int i, old_len, new_len;
vector<string> command_global_name;
bool found_type_match_cb = false;
Expand All @@ -1369,7 +1368,6 @@ CliClient::process_command(const string& command_line)
child_cli_command = parent_cli_command->command_find(token);

new_len = token_line.size();
syntax_error_offset_prev = syntax_error_offset_next;
syntax_error_offset_next += old_len - new_len;
old_len = new_len;

Expand Down

0 comments on commit 755ecb8

Please sign in to comment.