summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2020-06-08 21:24:24 +0200
committerGravatar Martin Szulecki2020-06-08 21:24:24 +0200
commit296a294ab114ff49dcf7717c5a0d7d55ab39825a (patch)
tree47986e105bbd9e00beb0a6e50c17ea452b07ec34
parentc591499b041b2a692dcd0b22b5952174caed47a1 (diff)
downloadlibimobiledevice-296a294ab114ff49dcf7717c5a0d7d55ab39825a.tar.gz
libimobiledevice-296a294ab114ff49dcf7717c5a0d7d55ab39825a.tar.bz2
Remove whitespace errors from all files
-rw-r--r--src/idevice.c2
-rw-r--r--src/mobileactivation.c2
-rw-r--r--src/property_list_service.c6
-rw-r--r--tools/idevicesetlocation.c2
4 files changed, 8 insertions, 4 deletions
diff --git a/src/idevice.c b/src/idevice.c
index b51f08c..18487aa 100644
--- a/src/idevice.c
+++ b/src/idevice.c
@@ -711,7 +711,7 @@ LIBIMOBILEDEVICE_API idevice_error_t idevice_connection_receive_timeout(idevice_
*recv_bytes = 0;
return IDEVICE_E_SSL_ERROR;
}
-
+
*recv_bytes = received;
return IDEVICE_E_SUCCESS;
}
diff --git a/src/mobileactivation.c b/src/mobileactivation.c
index ea891b7..2de4333 100644
--- a/src/mobileactivation.c
+++ b/src/mobileactivation.c
@@ -264,7 +264,7 @@ LIBIMOBILEDEVICE_API mobileactivation_error_t mobileactivation_create_activation
plist_free(result);
result = NULL;
- return ret;
+ return ret;
}
LIBIMOBILEDEVICE_API mobileactivation_error_t mobileactivation_activate(mobileactivation_client_t client, plist_t activation_record)
diff --git a/src/property_list_service.c b/src/property_list_service.c
index f0fc830..7b5c738 100644
--- a/src/property_list_service.c
+++ b/src/property_list_service.c
@@ -224,6 +224,7 @@ static property_list_service_error_t internal_plist_receive_timeout(property_lis
debug_info("received %d bytes", bytes);
curlen += bytes;
}
+
if (curlen < pktlen) {
debug_info("received incomplete packet (%d of %d bytes)", curlen, pktlen);
if (curlen > 0) {
@@ -233,6 +234,7 @@ static property_list_service_error_t internal_plist_receive_timeout(property_lis
free(content);
return res;
}
+
if ((pktlen > 8) && !memcmp(content, "bplist00", 8)) {
plist_from_bin(content, pktlen, plist);
} else if ((pktlen > 5) && !memcmp(content, "<?xml", 5)) {
@@ -246,15 +248,17 @@ static property_list_service_error_t internal_plist_receive_timeout(property_lis
debug_info("WARNING: received unexpected non-plist content");
debug_buffer(content, pktlen);
}
+
if (*plist) {
debug_plist(*plist);
res = PROPERTY_LIST_SERVICE_E_SUCCESS;
} else {
res = PROPERTY_LIST_SERVICE_E_PLIST_ERROR;
}
+
free(content);
content = NULL;
-
+
return res;
}
diff --git a/tools/idevicesetlocation.c b/tools/idevicesetlocation.c
index ffa285e..412b47c 100644
--- a/tools/idevicesetlocation.c
+++ b/tools/idevicesetlocation.c
@@ -183,7 +183,7 @@ int main(int argc, char **argv)
s = 0;
service_send(service, buf, len, &s);
}
-
+
idevice_free(device);
return 0;