summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2015-01-29 20:36:17 +0100
committerGravatar Martin Szulecki2015-01-29 20:36:17 +0100
commit8f8219bec024d471bfc7574433e3b69019b3988e (patch)
tree6f3a9f800e7c1408afe714227237b44ff5345da8 /src
parent5a8c59a0bb47dfabaa2089f1e39f48313b1fa5a3 (diff)
downloadlibirecovery-8f8219bec024d471bfc7574433e3b69019b3988e.tar.gz
libirecovery-8f8219bec024d471bfc7574433e3b69019b3988e.tar.bz2
Fix a few compiler warnings
Diffstat (limited to 'src')
-rw-r--r--src/libirecovery.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/libirecovery.c b/src/libirecovery.c
index f53ca45..47ca81f 100644
--- a/src/libirecovery.c
+++ b/src/libirecovery.c
@@ -410,10 +410,9 @@ typedef struct usb_control_request {
char data[];
} usb_control_request;
-static int irecv_get_string_descriptor_ascii(irecv_client_t client, uint8_t desc_index, unsigned char * buffer, int size);
-
irecv_error_t mobiledevice_openpipes(irecv_client_t client);
void mobiledevice_closepipes(irecv_client_t client);
+irecv_error_t mobiledevice_connect(irecv_client_t* client, unsigned long long ecid);
irecv_error_t mobiledevice_connect(irecv_client_t* client, unsigned long long ecid) {
int found = 0;
@@ -479,12 +478,12 @@ irecv_error_t mobiledevice_connect(irecv_client_t* client, unsigned long long ec
*p = '\0';
}
- int j;
+ unsigned int j;
for (j = 0; j < strlen(serial_str); j++) {
if (serial_str[j] == '_') {
serial_str[j] = ' ';
} else {
- serial_str[j] = toupper(serial_str[j]);
+ serial_str[j] = toupper(serial_str[j]);
}
}
@@ -492,7 +491,7 @@ irecv_error_t mobiledevice_connect(irecv_client_t* client, unsigned long long ec
irecv_copy_nonce_with_tag(_client, "NONC", &_client->device_info.ap_nonce, &_client->device_info.ap_nonce_size);
irecv_copy_nonce_with_tag(_client, "SNON", &_client->device_info.sep_nonce, &_client->device_info.sep_nonce_size);
- if (ecid != 0) {
+ if (ecid != 0) {
if (_client->device_info.ecid != ecid) {
mobiledevice_closepipes(_client);
continue;
@@ -557,7 +556,7 @@ irecv_error_t mobiledevice_connect(irecv_client_t* client, unsigned long long ec
*p = '\0';
}
- int j;
+ unsigned int j;
for (j = 0; j < strlen(serial_str); j++) {
if (serial_str[j] == '_') {
serial_str[j] = ' ';