diff options
author | Joshua Hill | 2010-05-24 04:24:24 -0400 |
---|---|---|
committer | Joshua Hill | 2010-05-24 04:24:24 -0400 |
commit | 77df9a41d90ac645d69aa86dd9bb9ee09a9fb735 (patch) | |
tree | d1aa61354ee79cfae63dca318587dfe48581a4b1 /src/irecovery.c | |
parent | 53142922b14fe36f950eb28d3b42683ddedb7669 (diff) | |
download | libirecovery-77df9a41d90ac645d69aa86dd9bb9ee09a9fb735.tar.gz libirecovery-77df9a41d90ac645d69aa86dd9bb9ee09a9fb735.tar.bz2 |
Finally tracked down and killed that damn bug!!
Diffstat (limited to 'src/irecovery.c')
-rw-r--r-- | src/irecovery.c | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/src/irecovery.c b/src/irecovery.c index 00db72d..7150f90 100644 --- a/src/irecovery.c +++ b/src/irecovery.c @@ -119,7 +119,7 @@ void append_command_to_history(char* cmd) { void init_shell(irecv_client_t client) { irecv_error_t error = 0; - load_command_history(); + //load_command_history(); irecv_set_sender(client, &send_callback); irecv_set_receiver(client, &recv_callback); while(!quit) { @@ -136,7 +136,7 @@ void init_shell(irecv_client_t client) { quit = 1; } - append_command_to_history(cmd); + //append_command_to_history(cmd); free(cmd); } } @@ -160,10 +160,9 @@ int main(int argc, char** argv) { int opt = 0; int action = 0; char* argument = NULL; - char *uuid = NULL; irecv_error_t error = 0; if(argc == 1) print_usage(); - while ((opt = getopt(argc, argv, "vhru:sc:f:")) > 0) { + while ((opt = getopt(argc, argv, "vhrsc:f:")) > 0) { switch (opt) { case 'v': verbose += 1; @@ -173,10 +172,6 @@ int main(int argc, char** argv) { print_usage(); break; - case 'u': - uuid = optarg; - break; - case 'r': action = kResetDevice; break; @@ -205,7 +200,7 @@ int main(int argc, char** argv) { for(i = 0; i <= 5; i++) { debug("Attempting to connect... \n"); - if(irecv_open(&client, uuid) != IRECV_E_SUCCESS) sleep(1); + if(irecv_open(&client) != IRECV_E_SUCCESS) sleep(1); else break; if(i == 5) { |