diff options
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/idevicebackup.c | 4 | ||||
| -rw-r--r-- | tools/idevicedebug.c | 16 | ||||
| -rw-r--r-- | tools/idevicepair.c | 2 |
3 files changed, 11 insertions, 11 deletions
diff --git a/tools/idevicebackup.c b/tools/idevicebackup.c index 483f3d6..1e512d8 100644 --- a/tools/idevicebackup.c +++ b/tools/idevicebackup.c | |||
| @@ -533,7 +533,7 @@ static int mobilebackup_check_file_integrity(const char *backup_directory, const | |||
| 533 | for ( i = 0; i < 20; i++, p += 2 ) { | 533 | for ( i = 0; i < 20; i++, p += 2 ) { |
| 534 | snprintf (p, 3, "%02x", (unsigned char)fnhash[i] ); | 534 | snprintf (p, 3, "%02x", (unsigned char)fnhash[i] ); |
| 535 | } | 535 | } |
| 536 | if (strcmp(fnamehash, hash)) { | 536 | if (strcmp(fnamehash, hash) != 0) { |
| 537 | printf("\r\n"); | 537 | printf("\r\n"); |
| 538 | printf("WARNING: filename hash does not match for entry '%s'\n", hash); | 538 | printf("WARNING: filename hash does not match for entry '%s'\n", hash); |
| 539 | } | 539 | } |
| @@ -544,7 +544,7 @@ static int mobilebackup_check_file_integrity(const char *backup_directory, const | |||
| 544 | plist_get_string_val(node, &auth_version); | 544 | plist_get_string_val(node, &auth_version); |
| 545 | } | 545 | } |
| 546 | 546 | ||
| 547 | if (strcmp(auth_version, "1.0")) { | 547 | if (strcmp(auth_version, "1.0") != 0) { |
| 548 | printf("\r\n"); | 548 | printf("\r\n"); |
| 549 | printf("WARNING: Unknown AuthVersion '%s', DataHash cannot be verified!\n", auth_version); | 549 | printf("WARNING: Unknown AuthVersion '%s', DataHash cannot be verified!\n", auth_version); |
| 550 | } | 550 | } |
diff --git a/tools/idevicedebug.c b/tools/idevicedebug.c index c30b90e..7c9205f 100644 --- a/tools/idevicedebug.c +++ b/tools/idevicedebug.c | |||
| @@ -406,7 +406,7 @@ int main(int argc, char *argv[]) | |||
| 406 | debugserver_command_free(command); | 406 | debugserver_command_free(command); |
| 407 | command = NULL; | 407 | command = NULL; |
| 408 | if (response) { | 408 | if (response) { |
| 409 | if (strncmp(response, "OK", 2)) { | 409 | if (strncmp(response, "OK", 2) != NULL) { |
| 410 | debugserver_client_handle_response(debugserver_client, &response, NULL); | 410 | debugserver_client_handle_response(debugserver_client, &response, NULL); |
| 411 | goto cleanup; | 411 | goto cleanup; |
| 412 | } | 412 | } |
| @@ -423,7 +423,7 @@ int main(int argc, char *argv[]) | |||
| 423 | debugserver_command_free(command); | 423 | debugserver_command_free(command); |
| 424 | command = NULL; | 424 | command = NULL; |
| 425 | if (response) { | 425 | if (response) { |
| 426 | if (strncmp(response, "OK", 2)) { | 426 | if (strncmp(response, "OK", 2) != NULL) { |
| 427 | debugserver_client_handle_response(debugserver_client, &response, NULL); | 427 | debugserver_client_handle_response(debugserver_client, &response, NULL); |
| 428 | goto cleanup; | 428 | goto cleanup; |
| 429 | } | 429 | } |
| @@ -439,7 +439,7 @@ int main(int argc, char *argv[]) | |||
| 439 | debugserver_command_free(command); | 439 | debugserver_command_free(command); |
| 440 | command = NULL; | 440 | command = NULL; |
| 441 | if (response) { | 441 | if (response) { |
| 442 | if (strncmp(response, "OK", 2)) { | 442 | if (strncmp(response, "OK", 2) != NULL) { |
| 443 | debugserver_client_handle_response(debugserver_client, &response, NULL); | 443 | debugserver_client_handle_response(debugserver_client, &response, NULL); |
| 444 | goto cleanup; | 444 | goto cleanup; |
| 445 | } | 445 | } |
| @@ -480,7 +480,7 @@ int main(int argc, char *argv[]) | |||
| 480 | debugserver_command_free(command); | 480 | debugserver_command_free(command); |
| 481 | command = NULL; | 481 | command = NULL; |
| 482 | if (response) { | 482 | if (response) { |
| 483 | if (strncmp(response, "OK", 2)) { | 483 | if (strncmp(response, "OK", 2) != NULL) { |
| 484 | debugserver_client_handle_response(debugserver_client, &response, NULL); | 484 | debugserver_client_handle_response(debugserver_client, &response, NULL); |
| 485 | goto cleanup; | 485 | goto cleanup; |
| 486 | } | 486 | } |
| @@ -514,7 +514,7 @@ int main(int argc, char *argv[]) | |||
| 514 | debugserver_command_free(command); | 514 | debugserver_command_free(command); |
| 515 | command = NULL; | 515 | command = NULL; |
| 516 | if (response) { | 516 | if (response) { |
| 517 | if (strncmp(response, "OK", 2)) { | 517 | if (strncmp(response, "OK", 2) != NULL) { |
| 518 | debugserver_client_handle_response(debugserver_client, &response, NULL); | 518 | debugserver_client_handle_response(debugserver_client, &response, NULL); |
| 519 | goto cleanup; | 519 | goto cleanup; |
| 520 | } | 520 | } |
| @@ -540,7 +540,7 @@ int main(int argc, char *argv[]) | |||
| 540 | 540 | ||
| 541 | if (response) { | 541 | if (response) { |
| 542 | log_debug("response: %s", response); | 542 | log_debug("response: %s", response); |
| 543 | if (strncmp(response, "OK", 2)) { | 543 | if (strncmp(response, "OK", 2) != NULL) { |
| 544 | dres = debugserver_client_handle_response(debugserver_client, &response, &res); | 544 | dres = debugserver_client_handle_response(debugserver_client, &response, &res); |
| 545 | if (dres != DEBUGSERVER_E_SUCCESS) { | 545 | if (dres != DEBUGSERVER_E_SUCCESS) { |
| 546 | log_debug("failed to process response; error %d; %s", dres, response); | 546 | log_debug("failed to process response; error %d; %s", dres, response); |
| @@ -567,7 +567,7 @@ int main(int argc, char *argv[]) | |||
| 567 | debugserver_command_free(command); | 567 | debugserver_command_free(command); |
| 568 | command = NULL; | 568 | command = NULL; |
| 569 | if (response) { | 569 | if (response) { |
| 570 | if (strncmp(response, "OK", 2)) { | 570 | if (strncmp(response, "OK", 2) != NULL) { |
| 571 | debugserver_client_handle_response(debugserver_client, &response, NULL); | 571 | debugserver_client_handle_response(debugserver_client, &response, NULL); |
| 572 | } | 572 | } |
| 573 | free(response); | 573 | free(response); |
| @@ -581,7 +581,7 @@ int main(int argc, char *argv[]) | |||
| 581 | debugserver_command_free(command); | 581 | debugserver_command_free(command); |
| 582 | command = NULL; | 582 | command = NULL; |
| 583 | if (response) { | 583 | if (response) { |
| 584 | if (strncmp(response, "OK", 2)) { | 584 | if (strncmp(response, "OK", 2) != NULL) { |
| 585 | debugserver_client_handle_response(debugserver_client, &response, NULL); | 585 | debugserver_client_handle_response(debugserver_client, &response, NULL); |
| 586 | } | 586 | } |
| 587 | free(response); | 587 | free(response); |
diff --git a/tools/idevicepair.c b/tools/idevicepair.c index a2dc944..f42f498 100644 --- a/tools/idevicepair.c +++ b/tools/idevicepair.c | |||
| @@ -411,7 +411,7 @@ int main(int argc, char **argv) | |||
| 411 | result = EXIT_FAILURE; | 411 | result = EXIT_FAILURE; |
| 412 | goto leave; | 412 | goto leave; |
| 413 | } else { | 413 | } else { |
| 414 | if (strcmp("com.apple.mobile.lockdown", type)) { | 414 | if (strcmp("com.apple.mobile.lockdown", type) != 0) { |
| 415 | printf("WARNING: QueryType request returned '%s'\n", type); | 415 | printf("WARNING: QueryType request returned '%s'\n", type); |
| 416 | } | 416 | } |
| 417 | free(type); | 417 | free(type); |
