summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--common/debug.c6
-rw-r--r--common/debug.h6
-rw-r--r--common/socket.c6
-rw-r--r--common/socket.h6
-rw-r--r--common/thread.c6
-rw-r--r--common/thread.h6
-rw-r--r--common/userpref.c6
-rw-r--r--dev/afccheck.c8
-rw-r--r--dev/filerelaytest.c6
-rw-r--r--dev/housearresttest.c8
-rw-r--r--dev/ideviceclient.c6
-rw-r--r--dev/ideviceheartbeat.c8
-rw-r--r--dev/lckdclient.c6
-rw-r--r--include/endianness.h2
-rw-r--r--include/libimobiledevice/diagnostics_relay.h18
-rw-r--r--include/libimobiledevice/libimobiledevice.h22
-rw-r--r--include/libimobiledevice/property_list_service.h6
-rw-r--r--include/libimobiledevice/service.h6
-rw-r--r--src/afc.c24
-rw-r--r--src/afc.h10
-rw-r--r--src/debugserver.c8
-rw-r--r--src/debugserver.h8
-rw-r--r--src/device_link_service.c14
-rw-r--r--src/device_link_service.h10
-rw-r--r--src/diagnostics_relay.c10
-rw-r--r--src/diagnostics_relay.h10
-rw-r--r--src/file_relay.c12
-rw-r--r--src/file_relay.h10
-rw-r--r--src/heartbeat.c10
-rw-r--r--src/heartbeat.h8
-rw-r--r--src/house_arrest.c6
-rw-r--r--src/house_arrest.h6
-rw-r--r--src/idevice.c10
-rw-r--r--src/idevice.h6
-rw-r--r--src/installation_proxy.c10
-rw-r--r--src/installation_proxy.h6
-rw-r--r--src/lockdown.c2
-rw-r--r--src/misagent.c6
-rw-r--r--src/misagent.h6
-rw-r--r--src/mobile_image_mounter.c12
-rw-r--r--src/mobile_image_mounter.h6
-rw-r--r--src/mobilebackup.c10
-rw-r--r--src/mobilebackup.h10
-rw-r--r--src/mobilebackup2.c10
-rw-r--r--src/mobilebackup2.h10
-rw-r--r--src/mobilesync.c14
-rw-r--r--src/mobilesync.h10
-rw-r--r--src/notification_proxy.c10
-rw-r--r--src/notification_proxy.h6
-rw-r--r--src/property_list_service.c8
-rw-r--r--src/property_list_service.h10
-rw-r--r--src/restore.c18
-rw-r--r--src/sbservices.c8
-rw-r--r--src/sbservices.h6
-rw-r--r--src/screenshotr.c10
-rw-r--r--src/screenshotr.h8
-rw-r--r--src/service.c10
-rw-r--r--src/service.h10
-rw-r--r--src/syslog_relay.c10
-rw-r--r--src/syslog_relay.h8
-rw-r--r--src/webinspector.c12
-rw-r--r--src/webinspector.h8
-rw-r--r--tools/idevice_id.c8
-rw-r--r--tools/idevicebackup.c24
-rw-r--r--tools/idevicebackup2.c41
-rw-r--r--tools/idevicecrashreport.c6
-rw-r--r--tools/idevicedate.c8
-rw-r--r--tools/idevicedebugserverproxy.c6
-rw-r--r--tools/idevicediagnostics.c8
-rw-r--r--tools/ideviceenterrecovery.c8
-rw-r--r--tools/ideviceimagemounter.c8
-rw-r--r--tools/ideviceinfo.c10
-rw-r--r--tools/idevicename.c6
-rw-r--r--tools/idevicenotificationproxy.c2
-rw-r--r--tools/idevicepair.c8
-rw-r--r--tools/ideviceprovision.c10
-rw-r--r--tools/idevicescreenshot.c6
-rw-r--r--tools/idevicesyslog.c10
78 files changed, 360 insertions, 363 deletions
diff --git a/common/debug.c b/common/debug.c
index 82e3c2f..acca456 100644
--- a/common/debug.c
+++ b/common/debug.c
@@ -9,15 +9,15 @@
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifdef HAVE_CONFIG_H
diff --git a/common/debug.h b/common/debug.h
index 4c264c7..882072d 100644
--- a/common/debug.h
+++ b/common/debug.h
@@ -9,15 +9,15 @@
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef __DEBUG_H
diff --git a/common/socket.c b/common/socket.c
index c35de33..b276864 100644
--- a/common/socket.c
+++ b/common/socket.c
@@ -8,15 +8,15 @@
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include <stdio.h>
diff --git a/common/socket.h b/common/socket.h
index c2b2599..81ee083 100644
--- a/common/socket.h
+++ b/common/socket.h
@@ -8,15 +8,15 @@
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef __SOCKET_SOCKET_H
diff --git a/common/thread.c b/common/thread.c
index f4a00cf..fdc8112 100644
--- a/common/thread.c
+++ b/common/thread.c
@@ -8,15 +8,15 @@
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include "thread.h"
diff --git a/common/thread.h b/common/thread.h
index d0eebdf..bd53c5b 100644
--- a/common/thread.h
+++ b/common/thread.h
@@ -8,15 +8,15 @@
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef __THREAD_H
diff --git a/common/userpref.c b/common/userpref.c
index fd7022c..f88a123 100644
--- a/common/userpref.c
+++ b/common/userpref.c
@@ -159,7 +159,7 @@ const char *userpref_get_config_dir()
__config_dir = string_concat(base_config_dir, DIR_SEP_S, USERPREF_CONFIG_DIR, NULL);
if (__config_dir) {
- int i = strlen(__config_dir)-1;
+ int i = strlen(__config_dir)-1;
while ((i > 0) && (__config_dir[i] == DIR_SEP)) {
__config_dir[i--] = '\0';
}
@@ -232,7 +232,7 @@ int userpref_has_pair_record(const char *udid)
* @param count The number of UDIDs found. This parameter can be NULL if it
* is not required.
*
- * @return USERPREF_E_SUCCESS on success, or USERPREF_E_INVALID_ARG if the
+ * @return USERPREF_E_SUCCESS on success, or USERPREF_E_INVALID_ARG if the
* list parameter is not pointing to NULL.
*/
userpref_error_t userpref_get_paired_udids(char ***list, unsigned int *count)
@@ -491,7 +491,7 @@ userpref_error_t pair_record_generate_keys_and_certs(plist_t pair_record, key_da
X509_set_notAfter(host_cert, asn1time);
ASN1_TIME_free(asn1time);
- /* use host public key for host cert */
+ /* use host public key for host cert */
X509_set_pubkey(host_cert, host_pkey);
/* sign host cert with root private key */
diff --git a/dev/afccheck.c b/dev/afccheck.c
index c534000..fed8538 100644
--- a/dev/afccheck.c
+++ b/dev/afccheck.c
@@ -8,15 +8,15 @@
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include <stdlib.h>
@@ -46,7 +46,7 @@ static void* check_afc(void *data)
int *buf2 = (int *) malloc(buffersize);
unsigned int bytes = 0;
uint64_t position = 0;
-
+
//fill buffer
int i = 0;
for (i = 0; i < BUFFER_SIZE; i++) {
diff --git a/dev/filerelaytest.c b/dev/filerelaytest.c
index 1069711..6983f1d 100644
--- a/dev/filerelaytest.c
+++ b/dev/filerelaytest.c
@@ -8,15 +8,15 @@
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include <errno.h>
#include <stdio.h>
diff --git a/dev/housearresttest.c b/dev/housearresttest.c
index 2e24670..6586787 100644
--- a/dev/housearresttest.c
+++ b/dev/housearresttest.c
@@ -8,15 +8,15 @@
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include <stdio.h>
#include <stdlib.h>
@@ -30,7 +30,7 @@
static void print_usage(int argc, char **argv)
{
char *name = NULL;
-
+
name = strrchr(argv[0], '/');
printf("Usage: %s [OPTIONS] APPID\n", (name ? name + 1: argv[0]));
printf("Test the house_arrest service.\n\n");
diff --git a/dev/ideviceclient.c b/dev/ideviceclient.c
index 778f20e..b92ae94 100644
--- a/dev/ideviceclient.c
+++ b/dev/ideviceclient.c
@@ -8,15 +8,15 @@
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include <stdio.h>
diff --git a/dev/ideviceheartbeat.c b/dev/ideviceheartbeat.c
index c92ff90..a140589 100644
--- a/dev/ideviceheartbeat.c
+++ b/dev/ideviceheartbeat.c
@@ -8,15 +8,15 @@
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include <stdio.h>
@@ -42,7 +42,7 @@ static void clean_exit(int sig)
static void print_usage(int argc, char **argv)
{
char *name = NULL;
-
+
name = strrchr(argv[0], '/');
printf("Usage: %s [OPTIONS]\n", (name ? name + 1: argv[0]));
printf("Runs in the foreground and keeps a \"heartbeat\" connection alive.\n\n");
diff --git a/dev/lckdclient.c b/dev/lckdclient.c
index b9be4de..08d798f 100644
--- a/dev/lckdclient.c
+++ b/dev/lckdclient.c
@@ -8,15 +8,15 @@
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include <stdio.h>
diff --git a/include/endianness.h b/include/endianness.h
index 9dfcd0c..585e768 100644
--- a/include/endianness.h
+++ b/include/endianness.h
@@ -66,7 +66,7 @@
| (((x) & 0x00000000FF000000ull) << 8) \
| (((x) & 0x0000000000FF0000ull) << 24) \
| (((x) & 0x000000000000FF00ull) << 40) \
- | (((x) & 0x00000000000000FFull) << 56))
+ | (((x) & 0x00000000000000FFull) << 56))
#endif
#ifndef htobe64
diff --git a/include/libimobiledevice/diagnostics_relay.h b/include/libimobiledevice/diagnostics_relay.h
index f8eda2b..97ac363 100644
--- a/include/libimobiledevice/diagnostics_relay.h
+++ b/include/libimobiledevice/diagnostics_relay.h
@@ -67,7 +67,7 @@ typedef diagnostics_relay_client_private *diagnostics_relay_client_t; /**< The c
* or DIAGNOSTICS_RELAY_E_MUX_ERROR when the connection failed.
*/
diagnostics_relay_error_t diagnostics_relay_client_new(idevice_t device, lockdownd_service_descriptor_t service, diagnostics_relay_client_t *client);
-
+
/**
* Starts a new diagnostics_relay service on the specified device and connects to it.
*
@@ -82,7 +82,7 @@ diagnostics_relay_error_t diagnostics_relay_client_new(idevice_t device, lockdow
* code otherwise.
*/
diagnostics_relay_error_t diagnostics_relay_client_start_service(idevice_t device, diagnostics_relay_client_t* client, const char* label);
-
+
/**
* Disconnects a diagnostics_relay client from the device and frees up the
* diagnostics_relay client data.
@@ -96,7 +96,7 @@ diagnostics_relay_error_t diagnostics_relay_client_start_service(idevice_t devic
*/
diagnostics_relay_error_t diagnostics_relay_client_free(diagnostics_relay_client_t client);
-
+
/**
* Sends the Goodbye request signaling the end of communication.
*
@@ -108,7 +108,7 @@ diagnostics_relay_error_t diagnostics_relay_client_free(diagnostics_relay_client
* request
*/
diagnostics_relay_error_t diagnostics_relay_goodbye(diagnostics_relay_client_t client);
-
+
/**
* Puts the device into deep sleep mode and disconnects from host.
*
@@ -120,7 +120,7 @@ diagnostics_relay_error_t diagnostics_relay_goodbye(diagnostics_relay_client_t c
* request
*/
diagnostics_relay_error_t diagnostics_relay_sleep(diagnostics_relay_client_t client);
-
+
/**
* Restart the device and optionally show a user notification.
*
@@ -137,7 +137,7 @@ diagnostics_relay_error_t diagnostics_relay_sleep(diagnostics_relay_client_t cli
* request
*/
diagnostics_relay_error_t diagnostics_relay_restart(diagnostics_relay_client_t client, int flags);
-
+
/**
* Shutdown of the device and optionally show a user notification.
*
@@ -171,11 +171,11 @@ diagnostics_relay_error_t diagnostics_relay_shutdown(diagnostics_relay_client_t
* request
*/
diagnostics_relay_error_t diagnostics_relay_request_diagnostics(diagnostics_relay_client_t client, const char* type, plist_t* diagnostics);
-
+
diagnostics_relay_error_t diagnostics_relay_query_mobilegestalt(diagnostics_relay_client_t client, plist_t keys, plist_t* result);
-
+
diagnostics_relay_error_t diagnostics_relay_query_ioregistry_entry(diagnostics_relay_client_t client, const char* name, const char* class, plist_t* result);
-
+
diagnostics_relay_error_t diagnostics_relay_query_ioregistry_plane(diagnostics_relay_client_t client, const char* plane, plist_t* result);
#ifdef __cplusplus
diff --git a/include/libimobiledevice/libimobiledevice.h b/include/libimobiledevice/libimobiledevice.h
index 6a349f8..016cadb 100644
--- a/include/libimobiledevice/libimobiledevice.h
+++ b/include/libimobiledevice/libimobiledevice.h
@@ -11,15 +11,15 @@
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef IMOBILEDEVICE_H
@@ -122,7 +122,7 @@ idevice_error_t idevice_get_device_list(char ***devices, int *count);
idevice_error_t idevice_device_list_free(char **devices);
/* device structure creation and destruction */
-
+
/**
* Creates an idevice_t structure for the device specified by udid,
* if the device is available.
@@ -148,7 +148,7 @@ idevice_error_t idevice_new(idevice_t *device, const char *udid);
idevice_error_t idevice_free(idevice_t device);
/* connection/disconnection */
-
+
/**
* Set up a connection to the given device.
*
@@ -171,7 +171,7 @@ idevice_error_t idevice_connect(idevice_t device, uint16_t port, idevice_connect
idevice_error_t idevice_disconnect(idevice_connection_t connection);
/* communication */
-
+
/**
* Send data to a device via the given connection.
*
@@ -201,7 +201,7 @@ idevice_error_t idevice_connection_send(idevice_connection_t connection, const c
* @return IDEVICE_E_SUCCESS if ok, otherwise an error code.
*/
idevice_error_t idevice_connection_receive_timeout(idevice_connection_t connection, char *data, uint32_t len, uint32_t *recv_bytes, unsigned int timeout);
-
+
/**
* Receive data from a device via the given connection.
* This function is like idevice_connection_receive_timeout, but with a
@@ -216,7 +216,7 @@ idevice_error_t idevice_connection_receive_timeout(idevice_connection_t connecti
* @return IDEVICE_E_SUCCESS if ok, otherwise an error code.
*/
idevice_error_t idevice_connection_receive(idevice_connection_t connection, char *data, uint32_t len, uint32_t *recv_bytes);
-
+
/**
* Enables SSL for the given connection.
*
@@ -227,7 +227,7 @@ idevice_error_t idevice_connection_receive(idevice_connection_t connection, char
* SSL initialization, setup, or handshake fails.
*/
idevice_error_t idevice_connection_enable_ssl(idevice_connection_t connection);
-
+
/**
* Disable SSL for the given connection.
*
@@ -240,12 +240,12 @@ idevice_error_t idevice_connection_enable_ssl(idevice_connection_t connection);
idevice_error_t idevice_connection_disable_ssl(idevice_connection_t connection);
/* misc */
-
+
/**
* Gets the handle of the device. Depends on the connection type.
*/
idevice_error_t idevice_get_handle(idevice_t device, uint32_t *handle);
-
+
/**
* Gets the unique id for the device.
*/
diff --git a/include/libimobiledevice/property_list_service.h b/include/libimobiledevice/property_list_service.h
index 31ba99a..5d5b835 100644
--- a/include/libimobiledevice/property_list_service.h
+++ b/include/libimobiledevice/property_list_service.h
@@ -10,15 +10,15 @@
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef IPROPERTY_LIST_SERVICE_H
diff --git a/include/libimobiledevice/service.h b/include/libimobiledevice/service.h
index 97f9cf1..13c5df1 100644
--- a/include/libimobiledevice/service.h
+++ b/include/libimobiledevice/service.h
@@ -9,15 +9,15 @@
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef ISERVICE_H
diff --git a/src/afc.c b/src/afc.c
index d6890e4..d83b50d 100644
--- a/src/afc.c
+++ b/src/afc.c
@@ -1,7 +1,7 @@
/*
- * afc.c
+ * afc.c
* Contains functions for the built-in AFC client.
- *
+ *
* Copyright (c) 2014 Martin Szulecki All Rights Reserved.
* Copyright (c) 2009-2014 Nikias Bassen. All Rights Reserved.
* Copyright (c) 2008 Zach C. All Rights Reserved.
@@ -10,15 +10,15 @@
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifdef HAVE_CONFIG_H
@@ -36,7 +36,7 @@
/**
* Locks an AFC client, done for thread safety stuff
- *
+ *
* @param client The AFC client connection to lock
*/
static void afc_lock(afc_client_t client)
@@ -47,8 +47,8 @@ static void afc_lock(afc_client_t client)
/**
* Unlocks an AFC client, done for thread safety stuff.
- *
- * @param client The AFC
+ *
+ * @param client The AFC
*/
static void afc_unlock(afc_client_t client)
{
@@ -63,7 +63,7 @@ static void afc_unlock(afc_client_t client)
* @param service_client A connected service client
* @param client Pointer that will be set to a newly allocated afc_client_t
* upon successful return.
- *
+ *
* @return AFC_E_SUCCESS on success, AFC_E_INVALID_ARG if connection is
* invalid, or AFC_E_NO_MEM if there is a memory allocation problem.
*/
@@ -139,7 +139,7 @@ LIBIMOBILEDEVICE_API afc_error_t afc_client_free(afc_client_t client)
/**
* Dispatches an AFC packet over a client.
- *
+ *
* @param client The client to send data through.
* @param operation The operation to perform.
* @param data The data to send together with the header.
@@ -211,11 +211,11 @@ static afc_error_t afc_dispatch_packet(afc_client_t client, uint64_t operation,
/**
* Receives data through an AFC client and sets a variable to the received data.
- *
+ *
* @param client The client to receive data on.
* @param bytes The char* to point to the newly-received data.
* @param bytes_recv How much data was received.
- *
+ *
* @return AFC_E_SUCCESS on success or an AFC_E_* error value.
*/
static afc_error_t afc_receive_data(afc_client_t client, char **bytes, uint32_t *bytes_recv)
diff --git a/src/afc.h b/src/afc.h
index 15bd354..99c31ca 100644
--- a/src/afc.h
+++ b/src/afc.h
@@ -1,7 +1,7 @@
-/*
+/*
* afc.h
* Defines and structs and the like for the built-in AFC client
- *
+ *
* Copyright (c) 2014 Martin Szulecki All Rights Reserved.
* Copyright (c) 2008 Zach C. All Rights Reserved.
*
@@ -9,15 +9,15 @@
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef __AFC_H
diff --git a/src/debugserver.c b/src/debugserver.c
index 0aec260..41546dd 100644
--- a/src/debugserver.c
+++ b/src/debugserver.c
@@ -1,19 +1,19 @@
/*
- * debugserver.c
+ * debugserver.c
* com.apple.debugserver service implementation.
- *
+ *
* Copyright (c) 2014 Martin Szulecki All Rights Reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
diff --git a/src/debugserver.h b/src/debugserver.h
index 8608167..05cd97b 100644
--- a/src/debugserver.h
+++ b/src/debugserver.h
@@ -1,22 +1,22 @@
/*
* debugserver.h
* com.apple.debugserver service header file.
- *
+ *
* Copyright (c) 2014 Martin Szulecki All Rights Reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef _DEBUGSERVER_H
diff --git a/src/device_link_service.c b/src/device_link_service.c
index e9ca5f6..007223e 100644
--- a/src/device_link_service.c
+++ b/src/device_link_service.c
@@ -1,22 +1,22 @@
- /*
+/*
* device_link_service.c
* DeviceLink service implementation.
- *
+ *
* Copyright (c) 2010 Nikias Bassen, All Rights Reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include <string.h>
#include <stdlib.h>
@@ -149,7 +149,7 @@ device_link_service_error_t device_link_service_version_exchange(device_link_ser
{
if (!client)
return DEVICE_LINK_SERVICE_E_INVALID_ARG;
-
+
device_link_service_error_t err = DEVICE_LINK_SERVICE_E_UNKNOWN_ERROR;
/* perform version exchange */
@@ -240,7 +240,7 @@ leave:
*
* @param client The device link service client to disconnect.
* @param message Optional message to send send to the device or NULL.
- *
+ *
* @return DEVICE_LINK_SERVICE_E_SUCCESS on success,
* DEVICE_LINK_SERVICE_E_INVALID_ARG if client is NULL,
* or DEVICE_LINK_SERVICE_E_MUX_ERROR when there's an error when sending
diff --git a/src/device_link_service.h b/src/device_link_service.h
index 2469877..a0c8390 100644
--- a/src/device_link_service.h
+++ b/src/device_link_service.h
@@ -1,22 +1,22 @@
- /*
+/*
* device_link_service.h
* Definitions for the DeviceLink service
- *
+ *
* Copyright (c) 2010 Nikias Bassen, All Rights Reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef __DEVICE_LINK_SERVICE_H
diff --git a/src/diagnostics_relay.c b/src/diagnostics_relay.c
index 825678a..f67c4df 100644
--- a/src/diagnostics_relay.c
+++ b/src/diagnostics_relay.c
@@ -1,22 +1,22 @@
- /*
+/*
* diagnostics_relay.c
* com.apple.mobile.diagnostics_relay service implementation.
- *
+ *
* Copyright (c) 2012 Martin Szulecki, All Rights Reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include <string.h>
#include <stdlib.h>
diff --git a/src/diagnostics_relay.h b/src/diagnostics_relay.h
index eb1a21b..6d11ea1 100644
--- a/src/diagnostics_relay.h
+++ b/src/diagnostics_relay.h
@@ -1,22 +1,22 @@
- /*
+/*
* diagnostics_relay.h
* com.apple.mobile.diagnostics_relay service header file.
- *
+ *
* Copyright (c) 2012 Martin Szulecki, All Rights Reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef __DIAGNOSTICS_RELAY_H
diff --git a/src/file_relay.c b/src/file_relay.c
index 64b04ad..5055556 100644
--- a/src/file_relay.c
+++ b/src/file_relay.c
@@ -1,22 +1,22 @@
- /*
+/*
* file_relay.c
* com.apple.mobile.file_relay service implementation.
- *
+ *
* Copyright (c) 2010 Nikias Bassen, All Rights Reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include <string.h>
#include <stdlib.h>
@@ -75,7 +75,7 @@ LIBIMOBILEDEVICE_API file_relay_error_t file_relay_request_sources_timeout(file_
while (sources[i]) {
plist_array_append_item(array, plist_new_string(sources[i]));
i++;
- }
+ }
plist_t dict = plist_new_dict();
plist_dict_set_item(dict, "Sources", array);
diff --git a/src/file_relay.h b/src/file_relay.h
index c476a38..626fab8 100644
--- a/src/file_relay.h
+++ b/src/file_relay.h
@@ -1,22 +1,22 @@
- /*
+/*
* file_relay.h
* com.apple.mobile.file_relay service header file.
- *
+ *
* Copyright (c) 2010 Nikias Bassen, All Rights Reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef __FILE_RELAY_H
diff --git a/src/heartbeat.c b/src/heartbeat.c
index a6e70ef..fe7e63a 100644
--- a/src/heartbeat.c
+++ b/src/heartbeat.c
@@ -1,22 +1,22 @@
/*
- * heartbeat.c
+ * heartbeat.c
* com.apple.mobile.heartbeat service implementation.
- *
+ *
* Copyright (c) 2013 Martin Szulecki All Rights Reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifdef HAVE_CONFIG_H
diff --git a/src/heartbeat.h b/src/heartbeat.h
index 84e27fe..f648681 100644
--- a/src/heartbeat.h
+++ b/src/heartbeat.h
@@ -1,22 +1,22 @@
/*
* heartbeat.h
* com.apple.mobile.heartbeat service header file.
- *
+ *
* Copyright (c) 2013 Martin Szulecki All Rights Reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef __HEARTBEAT_H
diff --git a/src/house_arrest.c b/src/house_arrest.c
index b719d6f..135fc01 100644
--- a/src/house_arrest.c
+++ b/src/house_arrest.c
@@ -8,15 +8,15 @@
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include <string.h>
diff --git a/src/house_arrest.h b/src/house_arrest.h
index f050213..387594f 100644
--- a/src/house_arrest.h
+++ b/src/house_arrest.h
@@ -8,15 +8,15 @@
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef __HOUSE_ARREST_H
diff --git a/src/idevice.c b/src/idevice.c
index c73c21b..ce27495 100644
--- a/src/idevice.c
+++ b/src/idevice.c
@@ -1,4 +1,4 @@
-/*
+/*
* idevice.c
* Device discovery and communication interface.
*
@@ -10,15 +10,15 @@
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifdef HAVE_CONFIG_H
@@ -795,7 +795,7 @@ LIBIMOBILEDEVICE_API idevice_error_t idevice_connection_disable_ssl(idevice_conn
if (!connection)
return IDEVICE_E_INVALID_ARG;
if (!connection->ssl_data) {
- /* ignore if ssl is not enabled */
+ /* ignore if ssl is not enabled */
return IDEVICE_E_SUCCESS;
}
diff --git a/src/idevice.h b/src/idevice.h
index 08e24e6..1354cc0 100644
--- a/src/idevice.h
+++ b/src/idevice.h
@@ -8,15 +8,15 @@
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef __DEVICE_H
diff --git a/src/installation_proxy.c b/src/installation_proxy.c
index c60e6b5..e858e58 100644
--- a/src/installation_proxy.c
+++ b/src/installation_proxy.c
@@ -9,15 +9,15 @@
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include <string.h>
@@ -192,7 +192,7 @@ static void instproxy_lock(instproxy_client_t client)
/**
* Unlocks an installation_proxy client, used for thread safety.
- *
+ *
* @param client The installation_proxy client to lock
*/
static void instproxy_unlock(instproxy_client_t client)
@@ -502,7 +502,7 @@ static instproxy_error_t instproxy_receive_status_loop_with_callback(instproxy_c
* @param user_data Callback data passed to status_cb.
*
* @return INSTPROXY_E_SUCCESS on success or an INSTPROXY_E_* error value if
- * an error occured.
+ * an error occured.
*/
static instproxy_error_t instproxy_perform_command(instproxy_client_t client, plist_t command, instproxy_command_type_t async, instproxy_status_cb_t status_cb, void *user_data)
{
diff --git a/src/installation_proxy.h b/src/installation_proxy.h
index 15dbb84..bbc14ce 100644
--- a/src/installation_proxy.h
+++ b/src/installation_proxy.h
@@ -9,15 +9,15 @@
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef __INSTALLATION_PROXY_H
diff --git a/src/lockdown.c b/src/lockdown.c
index 12cefa5..d1296c9 100644
--- a/src/lockdown.c
+++ b/src/lockdown.c
@@ -734,7 +734,7 @@ LIBIMOBILEDEVICE_API lockdownd_error_t lockdownd_client_new_with_handshake(idevi
}
}
-
+
if (LOCKDOWN_E_SUCCESS == ret) {
*client = client_loc;
} else {
diff --git a/src/misagent.c b/src/misagent.c
index e00fb17..2dd3451 100644
--- a/src/misagent.c
+++ b/src/misagent.c
@@ -8,15 +8,15 @@
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include <string.h>
diff --git a/src/misagent.h b/src/misagent.h
index b5035f1..08ad063 100644
--- a/src/misagent.h
+++ b/src/misagent.h
@@ -8,15 +8,15 @@
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef __MISAGENT_H
diff --git a/src/mobile_image_mounter.c b/src/mobile_image_mounter.c
index 9696b8c..c8c4c6f 100644
--- a/src/mobile_image_mounter.c
+++ b/src/mobile_image_mounter.c
@@ -8,15 +8,15 @@
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include <string.h>
@@ -40,7 +40,7 @@ static void mobile_image_mounter_lock(mobile_image_mounter_client_t client)
/**
* Unlocks a mobile_image_mounter client, used for thread safety.
- *
+ *
* @param client mobile_image_mounter client to unlock
*/
static void mobile_image_mounter_unlock(mobile_image_mounter_client_t client)
@@ -231,7 +231,7 @@ LIBIMOBILEDEVICE_API mobile_image_mounter_error_t mobile_image_mounter_upload_im
plist_get_string_val(node, &strval);
}
if (!strval) {
- debug_info("Error: Unexpected response received!");
+ debug_info("Error: Unexpected response received!");
goto leave_unlock;
}
if (strcmp(strval, "Complete") != 0) {
@@ -242,7 +242,7 @@ LIBIMOBILEDEVICE_API mobile_image_mounter_error_t mobile_image_mounter_upload_im
res = MOBILE_IMAGE_MOUNTER_E_SUCCESS;
}
free(strval);
-
+
leave_unlock:
mobile_image_mounter_unlock(client);
diff --git a/src/mobile_image_mounter.h b/src/mobile_image_mounter.h
index 67cb589..e9754e4 100644
--- a/src/mobile_image_mounter.h
+++ b/src/mobile_image_mounter.h
@@ -8,15 +8,15 @@
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef __MOBILE_IMAGE_MOUNTER_H
diff --git a/src/mobilebackup.c b/src/mobilebackup.c
index eefaef3..b32e0ba 100644
--- a/src/mobilebackup.c
+++ b/src/mobilebackup.c
@@ -1,22 +1,22 @@
/*
- * mobilebackup.c
+ * mobilebackup.c
* Contains functions for the built-in MobileBackup client.
- *
+ *
* Copyright (c) 2009 Martin Szulecki All Rights Reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include <plist/plist.h>
diff --git a/src/mobilebackup.h b/src/mobilebackup.h
index a373105..19b9999 100644
--- a/src/mobilebackup.h
+++ b/src/mobilebackup.h
@@ -1,22 +1,22 @@
- /*
+/*
* mobilebackup.h
* Definitions for the mobilebackup service
- *
+ *
* Copyright (c) 2009 Martin Szulecki All Rights Reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef __MOBILEBACKUP_H
diff --git a/src/mobilebackup2.c b/src/mobilebackup2.c
index 38b4069..08ce22b 100644
--- a/src/mobilebackup2.c
+++ b/src/mobilebackup2.c
@@ -1,22 +1,22 @@
/*
- * mobilebackup2.c
+ * mobilebackup2.c
* Contains functions for the built-in MobileBackup2 client (iOS4+ only)
- *
+ *
* Copyright (c) 2010 Nikias Bassen All Rights Reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include <plist/plist.h>
diff --git a/src/mobilebackup2.h b/src/mobilebackup2.h
index 66d4a42..4dba22a 100644
--- a/src/mobilebackup2.h
+++ b/src/mobilebackup2.h
@@ -1,22 +1,22 @@
- /*
+/*
* mobilebackup2.h
* Definitions for the mobilebackup2 service (iOS4+)
- *
+ *
* Copyright (c) 2010 Nikias Bassen All Rights Reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef __MOBILEBACKUP2_H
diff --git a/src/mobilesync.c b/src/mobilesync.c
index b07d536..06fb1c1 100644
--- a/src/mobilesync.c
+++ b/src/mobilesync.c
@@ -1,7 +1,7 @@
/*
- * mobilesync.c
+ * mobilesync.c
* Contains functions for the built-in MobileSync client.
- *
+ *
* Copyright (c) 2010 Bryan Forbes All Rights Reserved.
* Copyright (c) 2009 Jonathan Beck All Rights Reserved.
*
@@ -9,15 +9,15 @@
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#define _GNU_SOURCE 1
@@ -328,7 +328,7 @@ static mobilesync_error_t mobilesync_get_records(mobilesync_client_t client, con
msg = plist_new_array();
plist_array_append_item(msg, plist_new_string(operation));
plist_array_append_item(msg, plist_new_string(client->data_class));
-
+
err = mobilesync_send(client, msg);
if (msg) {
@@ -710,7 +710,7 @@ LIBIMOBILEDEVICE_API mobilesync_error_t mobilesync_cancel(mobilesync_client_t cl
LIBIMOBILEDEVICE_API mobilesync_anchors_t mobilesync_anchors_new(const char *device_anchor, const char *computer_anchor)
{
- mobilesync_anchors_t anchors = (mobilesync_anchors_t) malloc(sizeof(mobilesync_anchors));
+ mobilesync_anchors_t anchors = (mobilesync_anchors_t) malloc(sizeof(mobilesync_anchors));
if (device_anchor != NULL) {
anchors->device_anchor = strdup(device_anchor);
} else {
diff --git a/src/mobilesync.h b/src/mobilesync.h
index b0e7d4c..f672252 100644
--- a/src/mobilesync.h
+++ b/src/mobilesync.h
@@ -1,7 +1,7 @@
-/*
+/*
* mobilesync.h
* Definitions for the built-in MobileSync client
- *
+ *
* Copyright (c) 2010 Bryan Forbes All Rights Reserved.
* Copyright (c) 2009 Jonathan Beck All Rights Reserved.
*
@@ -9,15 +9,15 @@
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef __MOBILESYNC_H
diff --git a/src/notification_proxy.c b/src/notification_proxy.c
index b22448d..c0b216e 100644
--- a/src/notification_proxy.c
+++ b/src/notification_proxy.c
@@ -8,15 +8,15 @@
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include <string.h>
@@ -51,7 +51,7 @@ static void np_lock(np_client_t client)
/**
* Unlocks a notification_proxy client, used for thread safety.
- *
+ *
* @param client notification_proxy client to unlock
*/
static void np_unlock(np_client_t client)
@@ -260,7 +260,7 @@ static int np_get_notification(np_client_t client, char **notification)
debug_info("NotificationProxy: no notification received!");
res = 0;
} else if (perr != PROPERTY_LIST_SERVICE_E_SUCCESS) {
- debug_info("NotificationProxy: error %d occured!", perr);
+ debug_info("NotificationProxy: error %d occured!", perr);
res = perr;
}
if (dict) {
diff --git a/src/notification_proxy.h b/src/notification_proxy.h
index c2ded6a..cc25a95 100644
--- a/src/notification_proxy.h
+++ b/src/notification_proxy.h
@@ -8,15 +8,15 @@
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef __NOTIFICATION_PROXY_H
diff --git a/src/property_list_service.c b/src/property_list_service.c
index 931c1ef..141fab7 100644
--- a/src/property_list_service.c
+++ b/src/property_list_service.c
@@ -1,4 +1,4 @@
-/*
+/*
* property_list_service.c
* PropertyList service implementation.
*
@@ -8,15 +8,15 @@
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
diff --git a/src/property_list_service.h b/src/property_list_service.h
index 6775c7c..3c9e14d 100644
--- a/src/property_list_service.h
+++ b/src/property_list_service.h
@@ -1,22 +1,22 @@
- /*
+/*
* property_list_service.h
* Definitions for the PropertyList service
- *
+ *
* Copyright (c) 2010 Nikias Bassen, All Rights Reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef __PROPERTY_LIST_SERVICE_H
diff --git a/src/restore.c b/src/restore.c
index 4d4823f..4b578c2 100644
--- a/src/restore.c
+++ b/src/restore.c
@@ -93,7 +93,7 @@ LIBIMOBILEDEVICE_API restored_error_t restored_client_free(restored_client_t cli
{
if (!client)
return RESTORE_E_INVALID_ARG;
-
+
restored_error_t ret = RESTORE_E_UNKNOWN_ERROR;
if (client->parent) {
@@ -110,7 +110,7 @@ LIBIMOBILEDEVICE_API restored_error_t restored_client_free(restored_client_t cli
if (client->label) {
free(client->label);
}
-
+
if (client->info) {
plist_free(client->info);
}
@@ -133,7 +133,7 @@ LIBIMOBILEDEVICE_API restored_error_t restored_receive(restored_client_t client,
{
if (!client || !plist || (plist && *plist))
return RESTORE_E_INVALID_ARG;
-
+
restored_error_t ret = RESTORE_E_SUCCESS;
property_list_service_error_t err;
@@ -181,7 +181,7 @@ LIBIMOBILEDEVICE_API restored_error_t restored_query_type(restored_client_t clie
dict = NULL;
ret = restored_receive(client, &dict);
-
+
if (RESTORE_E_SUCCESS != ret)
return ret;
@@ -268,26 +268,26 @@ LIBIMOBILEDEVICE_API restored_error_t restored_get_value(restored_client_t clien
{
if (!client || !value || (value && *value))
return RESTORE_E_INVALID_ARG;
-
+
if (!client->info)
return RESTORE_E_NOT_ENOUGH_DATA;
-
+
restored_error_t ret = RESTORE_E_SUCCESS;
plist_t item = NULL;
-
+
if (!key) {
*value = plist_copy(client->info);
return RESTORE_E_SUCCESS;
} else {
item = plist_dict_get_item(client->info, key);
}
-
+
if (item) {
*value = plist_copy(item);
} else {
ret = RESTORE_E_PLIST_ERROR;
}
-
+
return ret;
}
diff --git a/src/sbservices.c b/src/sbservices.c
index 798e38a..0591f4a 100644
--- a/src/sbservices.c
+++ b/src/sbservices.c
@@ -8,15 +8,15 @@
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include <string.h>
@@ -41,7 +41,7 @@ static void sbservices_lock(sbservices_client_t client)
/**
* Unlocks an sbservices client, used for thread safety.
- *
+ *
* @param client sbservices client to unlock
*/
static void sbservices_unlock(sbservices_client_t client)
diff --git a/src/sbservices.h b/src/sbservices.h
index ba64d67..6c047ce 100644
--- a/src/sbservices.h
+++ b/src/sbservices.h
@@ -8,15 +8,15 @@
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef __SBSERVICES_H
diff --git a/src/screenshotr.c b/src/screenshotr.c
index eed271e..5c4a53f 100644
--- a/src/screenshotr.c
+++ b/src/screenshotr.c
@@ -1,22 +1,22 @@
/*
- * screenshotr.c
+ * screenshotr.c
* com.apple.mobile.screenshotr service implementation.
- *
+ *
* Copyright (c) 2010 Nikias Bassen All Rights Reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include <plist/plist.h>
diff --git a/src/screenshotr.h b/src/screenshotr.h
index 2dadee8..47d4e42 100644
--- a/src/screenshotr.h
+++ b/src/screenshotr.h
@@ -1,22 +1,22 @@
/*
* screenshotr.h
* com.apple.mobile.screenshotr service header file.
- *
+ *
* Copyright (c) 2010 Nikias Bassen All Rights Reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef __SCREENSHOTR_H
diff --git a/src/service.c b/src/service.c
index 48959b6..2dc42b2 100644
--- a/src/service.c
+++ b/src/service.c
@@ -1,4 +1,4 @@
-/*
+/*
* service.c
* generic service implementation.
*
@@ -8,15 +8,15 @@
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
@@ -148,7 +148,7 @@ LIBIMOBILEDEVICE_API service_error_t service_send(service_client_t client, const
return res;
}
-
+
LIBIMOBILEDEVICE_API service_error_t service_receive_with_timeout(service_client_t client, char* data, uint32_t size, uint32_t *received, unsigned int timeout)
{
service_error_t res = SERVICE_E_UNKNOWN_ERROR;
diff --git a/src/service.h b/src/service.h
index 512f9e2..3fc3077 100644
--- a/src/service.h
+++ b/src/service.h
@@ -1,22 +1,22 @@
-/*
+/*
* service.h
* Definitions for the generic service implementation
- *
+ *
* Copyright (c) 2013 Nikias Bassen, All Rights Reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef SERVICE_H
#define SERVICE_H
diff --git a/src/syslog_relay.c b/src/syslog_relay.c
index 5ef64cd..29f4de5 100644
--- a/src/syslog_relay.c
+++ b/src/syslog_relay.c
@@ -1,22 +1,22 @@
/*
- * syslog_relay.c
+ * syslog_relay.c
* com.apple.syslog_relay service implementation.
- *
+ *
* Copyright (c) 2013 Martin Szulecki All Rights Reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifdef HAVE_CONFIG_H
diff --git a/src/syslog_relay.h b/src/syslog_relay.h
index c6dcf32..cd45775 100644
--- a/src/syslog_relay.h
+++ b/src/syslog_relay.h
@@ -1,22 +1,22 @@
/*
* syslog_relay.h
* com.apple.syslog_relay service header file.
- *
+ *
* Copyright (c) 2013 Martin Szulecki All Rights Reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef _SYSLOG_RELAY_H
diff --git a/src/webinspector.c b/src/webinspector.c
index de30cd1..c81f4c7 100644
--- a/src/webinspector.c
+++ b/src/webinspector.c
@@ -1,22 +1,22 @@
/*
- * webinspector.c
+ * webinspector.c
* com.apple.webinspector service implementation.
- *
+ *
* Copyright (c) 2013 Yury Melnichek All Rights Reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifdef HAVE_CONFIG_H
@@ -123,7 +123,7 @@ LIBIMOBILEDEVICE_API webinspector_error_t webinspector_send(webinspector_client_
return res;
}
- do {
+ do {
/* determine if we need to send partial messages */
if (packet_length < WEBINSPECTOR_PARTIAL_PACKET_CHUNK_SIZE) {
is_final_message = 1;
diff --git a/src/webinspector.h b/src/webinspector.h
index 3c8e695..67421bc 100644
--- a/src/webinspector.h
+++ b/src/webinspector.h
@@ -1,22 +1,22 @@
/*
* webinspector.h
* com.apple.webinspector service header file.
- *
+ *
* Copyright (c) 2013 Yury Melnichek All Rights Reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef __WEBINSPECTOR_H
diff --git a/tools/idevice_id.c b/tools/idevice_id.c
index ebcdf6f..9629f8b 100644
--- a/tools/idevice_id.c
+++ b/tools/idevice_id.c
@@ -8,15 +8,15 @@
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include <stdio.h>
@@ -32,7 +32,7 @@
static void print_usage(int argc, char **argv)
{
char *name = NULL;
-
+
name = strrchr(argv[0], '/');
printf("Usage: %s [OPTIONS] [UDID]\n", (name ? name + 1: argv[0]));
printf("Prints device name or a list of attached devices.\n\n");
diff --git a/tools/idevicebackup.c b/tools/idevicebackup.c
index 152721e..eefaa6f 100644
--- a/tools/idevicebackup.c
+++ b/tools/idevicebackup.c
@@ -9,15 +9,15 @@
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifdef HAVE_CONFIG_H
@@ -511,13 +511,13 @@ static int mobilebackup_check_file_integrity(const char *backup_directory, const
char *version = NULL;
node = plist_dict_get_item(metadata, "Version");
- if (node && (plist_get_node_type(node) == PLIST_STRING)) {
+ if (node && (plist_get_node_type(node) == PLIST_STRING)) {
plist_get_string_val(node, &version);
}
char *destpath = NULL;
node = plist_dict_get_item(metadata, "Path");
- if (node && (plist_get_node_type(node) == PLIST_STRING)) {
+ if (node && (plist_get_node_type(node) == PLIST_STRING)) {
plist_get_string_val(node, &destpath);
}
@@ -529,7 +529,7 @@ static int mobilebackup_check_file_integrity(const char *backup_directory, const
char *domain = NULL;
node = plist_dict_get_item(metadata, "Domain");
- if (node && (plist_get_node_type(node) == PLIST_STRING)) {
+ if (node && (plist_get_node_type(node) == PLIST_STRING)) {
plist_get_string_val(node, &domain);
}
@@ -547,7 +547,7 @@ static int mobilebackup_check_file_integrity(const char *backup_directory, const
snprintf (p, 3, "%02x", (unsigned char)fnhash[i] );
}
if (strcmp(fnamehash, hash)) {
- printf("\r\n");
+ printf("\r\n");
printf("WARNING: filename hash does not match for entry '%s'\n", hash);
}
@@ -940,7 +940,7 @@ int main(int argc, char *argv[])
case CMD_BACKUP:
printf("Starting backup...\n");
/* TODO: check domain com.apple.mobile.backup key RequiresEncrypt and WillEncrypt with lockdown */
- /* TODO: verify battery on AC enough battery remaining */
+ /* TODO: verify battery on AC enough battery remaining */
/* read the last Manifest.plist */
if (!is_full_backup) {
@@ -1026,7 +1026,7 @@ int main(int argc, char *argv[])
sleep(2);
goto files_out;
}
-
+
node = plist_array_get_item(message, 0);
/* get out if we don't get a DLSendFile */
@@ -1287,7 +1287,7 @@ files_out:
}
free(auth_sig);
} else if (auth_ver) {
- printf("Unknown AuthVersion '%s', cannot verify AuthSignature\n", auth_ver);
+ printf("Unknown AuthVersion '%s', cannot verify AuthSignature\n", auth_ver);
}
plist_from_bin(bin, (uint32_t)binsize, &backup_data);
free(bin);
@@ -1434,7 +1434,7 @@ files_out:
file_status = DEVICE_LINK_FILE_STATUS_LAST_HUNK;
else
file_status = DEVICE_LINK_FILE_STATUS_HUNK;
-
+
plist_dict_remove_item(file_info, "DLFileOffsetKey");
plist_dict_set_item(file_info, "DLFileOffsetKey", plist_new_uint(file_offset));
@@ -1469,7 +1469,7 @@ files_out:
printf("DONE\n");
plist_free(send_file_node);
-
+
if (file_status == DEVICE_LINK_FILE_STATUS_NONE)
break;
diff --git a/tools/idevicebackup2.c b/tools/idevicebackup2.c
index abc0efa..ead4dba 100644
--- a/tools/idevicebackup2.c
+++ b/tools/idevicebackup2.c
@@ -9,15 +9,15 @@
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include <stdio.h>
@@ -142,7 +142,6 @@ static void mobilebackup_afc_get_file_contents(afc_client_t afc, const char *fil
uint32_t bread = 0;
afc_file_read(afc, f, buf+done, 65536, &bread);
if (bread > 0) {
-
} else {
break;
}
@@ -172,7 +171,7 @@ static int mkdir_with_parents(const char *dir, int mode)
if (__mkdir(dir, mode) == 0) {
return 0;
} else {
- if (errno == EEXIST) return 0;
+ if (errno == EEXIST) return 0;
}
int res;
char *parent = strdup(dir);
@@ -180,7 +179,7 @@ static int mkdir_with_parents(const char *dir, int mode)
if (parentdir) {
res = mkdir_with_parents(parentdir, mode);
} else {
- res = -1;
+ res = -1;
}
free(parent);
if (res == 0) {
@@ -590,7 +589,7 @@ leave:
}
char *errdesc = strerror(errcode);
mb2_multi_status_add_file_error(*errplist, path, errno_to_device_error(errcode), errdesc);
-
+
length = strlen(errdesc);
nlen = htobe32(length+1);
memcpy(buf, &nlen, 4);
@@ -616,7 +615,7 @@ leave_proto_err:
static void mb2_handle_send_files(mobilebackup2_client_t mobilebackup2, plist_t message, const char *backup_dir)
{
- uint32_t cnt;
+ uint32_t cnt;
uint32_t i = 0;
uint32_t sent;
plist_t errplist = NULL;
@@ -1077,15 +1076,15 @@ static void get_hidden_input(char *buf, int maxlen)
static char* ask_for_password(const char* msg, int type_again)
{
char pwbuf[256];
-
+
fprintf(stderr, "%s: ", msg);
fflush(stderr);
get_hidden_input(pwbuf, 256);
fputc('\n', stderr);
-
+
if (type_again) {
char pwrep[256];
-
+
fprintf(stderr, "%s (repeat): ", msg);
fflush(stderr);
get_hidden_input(pwrep, 256);
@@ -1168,7 +1167,7 @@ int main(int argc, char *argv[])
/* we need to exit cleanly on running backups and restores or we cause havok */
signal(SIGINT, clean_exit);
signal(SIGTERM, clean_exit);
-#ifndef WIN32
+#ifndef WIN32
signal(SIGQUIT, clean_exit);
signal(SIGPIPE, SIG_IGN);
#endif
@@ -1274,7 +1273,7 @@ int main(int argc, char *argv[])
if (!argv[i]) {
printf("No argument given for encryption command; requires either 'on' or 'off'.\n");
print_usage(argc, argv);
- return -1;
+ return -1;
}
if (!strcmp(argv[i], "on")) {
cmd_flags |= CMD_FLAG_ENCRYPTION_ENABLE;
@@ -1291,7 +1290,7 @@ int main(int argc, char *argv[])
if (backup_password) {
free(backup_password);
backup_password = NULL;
- }
+ }
i++;
if (argv[i]) {
if (cmd_flags & CMD_FLAG_ENCRYPTION_ENABLE) {
@@ -1304,7 +1303,7 @@ int main(int argc, char *argv[])
}
else if (!strcmp(argv[i], "changepw")) {
cmd = CMD_CHANGEPW;
- cmd_flags |= CMD_FLAG_ENCRYPTION_CHANGEPW;
+ cmd_flags |= CMD_FLAG_ENCRYPTION_CHANGEPW;
// check if passwords were given on command line
if (newpw) {
free(newpw);
@@ -1313,7 +1312,7 @@ int main(int argc, char *argv[])
if (backup_password) {
free(backup_password);
backup_password = NULL;
- }
+ }
i++;
if (argv[i]) {
backup_password = strdup(argv[i]);
@@ -1382,7 +1381,7 @@ int main(int argc, char *argv[])
}
uint8_t is_encrypted = 0;
- char *info_path = NULL;
+ char *info_path = NULL;
if (cmd == CMD_CHANGEPW) {
if (!interactive_mode && !backup_password && !newpw) {
idevice_free(device);
@@ -1609,7 +1608,7 @@ checkpoint:
}
/* TODO: check domain com.apple.mobile.backup key RequiresEncrypt and WillEncrypt with lockdown */
- /* TODO: verify battery on AC enough battery remaining */
+ /* TODO: verify battery on AC enough battery remaining */
/* re-create Info.plist (Device infos, IC-Info.sidb, photos, app_ids, iTunesPrefs) */
if (info_plist) {
@@ -1776,7 +1775,7 @@ checkpoint:
if (newpw) {
free(newpw);
newpw = NULL;
- }
+ }
if (backup_password) {
free(backup_password);
backup_password = NULL;
@@ -2057,7 +2056,6 @@ checkpoint:
printf("%s", str);
free(str);
}
-
break;
}
@@ -2134,7 +2132,7 @@ files_out:
}
} else if (cmd_flags & CMD_FLAG_ENCRYPTION_DISABLE) {
if (operation_ok) {
- PRINT_VERBOSE(1, "Backup encryption has been disabled successfully.\n");
+ PRINT_VERBOSE(1, "Backup encryption has been disabled successfully.\n");
} else {
PRINT_VERBOSE(1, "Could not disable backup encryption.\n");
}
@@ -2154,7 +2152,6 @@ files_out:
} else {
PRINT_VERBOSE(1, "Restore Failed (Error Code %d).\n", -result_code);
}
-
break;
case CMD_INFO:
case CMD_LIST:
diff --git a/tools/idevicecrashreport.c b/tools/idevicecrashreport.c
index b6384a9..b74a660 100644
--- a/tools/idevicecrashreport.c
+++ b/tools/idevicecrashreport.c
@@ -9,15 +9,15 @@
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include <stdio.h>
diff --git a/tools/idevicedate.c b/tools/idevicedate.c
index 27906f3..f6bed7a 100644
--- a/tools/idevicedate.c
+++ b/tools/idevicedate.c
@@ -8,15 +8,15 @@
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include <stdio.h>
@@ -39,7 +39,7 @@
static void print_usage(int argc, char **argv)
{
char *name = NULL;
-
+
name = strrchr(argv[0], '/');
printf("Usage: %s [OPTIONS]\n", (name ? name + 1: argv[0]));
printf("Display the current date or set it on a device.\n\n");
diff --git a/tools/idevicedebugserverproxy.c b/tools/idevicedebugserverproxy.c
index 75061fb..28bba5e 100644
--- a/tools/idevicedebugserverproxy.c
+++ b/tools/idevicedebugserverproxy.c
@@ -8,15 +8,15 @@
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include <stdio.h>
diff --git a/tools/idevicediagnostics.c b/tools/idevicediagnostics.c
index 309aa95..992bc0a 100644
--- a/tools/idevicediagnostics.c
+++ b/tools/idevicediagnostics.c
@@ -8,15 +8,15 @@
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include <stdio.h>
@@ -166,7 +166,7 @@ int main(int argc, char **argv)
if (IDEVICE_E_SUCCESS != idevice_new(&device, udid)) {
if (udid) {
- printf("No device found with udid %s, is it plugged in?\n", udid);
+ printf("No device found with udid %s, is it plugged in?\n", udid);
} else {
printf("No device found, is it plugged in?\n");
}
diff --git a/tools/ideviceenterrecovery.c b/tools/ideviceenterrecovery.c
index 3048176..3069be8 100644
--- a/tools/ideviceenterrecovery.c
+++ b/tools/ideviceenterrecovery.c
@@ -8,15 +8,15 @@
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include <stdio.h>
@@ -30,7 +30,7 @@
static void print_usage(int argc, char **argv)
{
char *name = NULL;
-
+
name = strrchr(argv[0], '/');
printf("Usage: %s [OPTIONS] UDID\n", (name ? name + 1: argv[0]));
printf("Makes a device with the supplied 40-digit UDID enter recovery mode immediately.\n\n");
diff --git a/tools/ideviceimagemounter.c b/tools/ideviceimagemounter.c
index 27f699f..a0f4b83 100644
--- a/tools/ideviceimagemounter.c
+++ b/tools/ideviceimagemounter.c
@@ -8,15 +8,15 @@
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include <stdlib.h>
@@ -205,7 +205,7 @@ int main(int argc, char **argv)
if (mobile_image_mounter_new(device, service, &mim) != MOBILE_IMAGE_MOUNTER_E_SUCCESS) {
printf("ERROR: Could not connect to mobile_image_mounter!\n");
goto leave;
- }
+ }
if (service) {
lockdownd_service_descriptor_free(service);
diff --git a/tools/ideviceinfo.c b/tools/ideviceinfo.c
index 41881e6..641a036 100644
--- a/tools/ideviceinfo.c
+++ b/tools/ideviceinfo.c
@@ -8,15 +8,15 @@
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include <stdio.h>
@@ -35,7 +35,7 @@ static const char *domains[] = {
"com.apple.disk_usage",
"com.apple.disk_usage.factory",
"com.apple.mobile.battery",
-/* FIXME: For some reason lockdownd segfaults on this, works sometimes though
+/* FIXME: For some reason lockdownd segfaults on this, works sometimes though
"com.apple.mobile.debug",. */
"com.apple.iqagent",
"com.apple.purplebuddy",
@@ -81,7 +81,7 @@ static void print_usage(int argc, char **argv)
{
int i = 0;
char *name = NULL;
-
+
name = strrchr(argv[0], '/');
printf("Usage: %s [OPTIONS]\n", (name ? name + 1: argv[0]));
printf("Show information about a connected device.\n\n");
diff --git a/tools/idevicename.c b/tools/idevicename.c
index 4214600..b5b9e62 100644
--- a/tools/idevicename.c
+++ b/tools/idevicename.c
@@ -8,15 +8,15 @@
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include <stdio.h>
diff --git a/tools/idevicenotificationproxy.c b/tools/idevicenotificationproxy.c
index 24976b9..ff18eca 100644
--- a/tools/idevicenotificationproxy.c
+++ b/tools/idevicenotificationproxy.c
@@ -16,7 +16,7 @@
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include <stdio.h>
diff --git a/tools/idevicepair.c b/tools/idevicepair.c
index 5604fc3..237b168 100644
--- a/tools/idevicepair.c
+++ b/tools/idevicepair.c
@@ -9,15 +9,15 @@
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include <stdio.h>
@@ -55,7 +55,7 @@ static void print_error_message(lockdownd_error_t err)
static void print_usage(int argc, char **argv)
{
char *name = NULL;
-
+
name = strrchr(argv[0], '/');
printf("\n%s - Manage host pairings with devices and usbmuxd.\n\n", (name ? name + 1: argv[0]));
printf("Usage: %s [OPTIONS] COMMAND\n\n", (name ? name + 1: argv[0]));
diff --git a/tools/ideviceprovision.c b/tools/ideviceprovision.c
index b9f2a02..9517af8 100644
--- a/tools/ideviceprovision.c
+++ b/tools/ideviceprovision.c
@@ -9,15 +9,15 @@
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include <stdio.h>
#include <stdlib.h>
@@ -37,7 +37,7 @@
static void print_usage(int argc, char **argv)
{
char *name = NULL;
-
+
name = strrchr(argv[0], '/');
printf("Usage: %s [OPTIONS] COMMAND\n", (name ? name + 1: argv[0]));
printf("Manage provisioning profiles on a device.\n\n");
@@ -411,7 +411,7 @@ int main(int argc, char *argv[])
case OP_INSTALL:
{
unsigned char* profile_data = NULL;
- unsigned int profile_size = 0;
+ unsigned int profile_size = 0;
if (profile_read_from_file(param, &profile_data, &profile_size) != 0) {
break;
}
diff --git a/tools/idevicescreenshot.c b/tools/idevicescreenshot.c
index b01cafd..bff502c 100644
--- a/tools/idevicescreenshot.c
+++ b/tools/idevicescreenshot.c
@@ -8,15 +8,15 @@
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include <stdio.h>
diff --git a/tools/idevicesyslog.c b/tools/idevicesyslog.c
index 23f74ab..4bc4b45 100644
--- a/tools/idevicesyslog.c
+++ b/tools/idevicesyslog.c
@@ -8,15 +8,15 @@
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include <stdio.h>
@@ -187,7 +187,7 @@ int main(int argc, char *argv[])
}
idevice_event_unsubscribe();
stop_logging();
-
+
if (udid) {
free(udid);
}
@@ -198,7 +198,7 @@ int main(int argc, char *argv[])
void print_usage(int argc, char **argv)
{
char *name = NULL;
-
+
name = strrchr(argv[0], '/');
printf("Usage: %s [OPTIONS]\n", (name ? name + 1: argv[0]));
printf("Relay syslog of a connected device.\n\n");