summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2013-02-28 02:49:25 +0100
committerGravatar Nikias Bassen2013-02-28 02:49:25 +0100
commit5a5323f9c20a75460fa2c9df17f372bcf06ff9e7 (patch)
tree9b4837dab91a84c98dd47322ae37c80e5defec23
parent31f24dd31bdd84308799123c8508d211291bb21d (diff)
downloadlibimobiledevice-5a5323f9c20a75460fa2c9df17f372bcf06ff9e7.tar.gz
libimobiledevice-5a5323f9c20a75460fa2c9df17f372bcf06ff9e7.tar.bz2
remove unneeded int16_t* casts from calls to service_client_factory_start_service
-rw-r--r--src/heartbeat.c2
-rw-r--r--src/webinspector.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/heartbeat.c b/src/heartbeat.c
index 5645b3e..0f8d2f3 100644
--- a/src/heartbeat.c
+++ b/src/heartbeat.c
@@ -113,7 +113,7 @@ heartbeat_error_t heartbeat_client_new(idevice_t device, lockdownd_service_descr
heartbeat_error_t heartbeat_client_start_service(idevice_t device, heartbeat_client_t * client, const char* label)
{
heartbeat_error_t err = HEARTBEAT_E_UNKNOWN_ERROR;
- service_client_factory_start_service(device, HEARTBEAT_SERVICE_NAME, (void**)client, label, SERVICE_CONSTRUCTOR(heartbeat_client_new), (int16_t*)&err);
+ service_client_factory_start_service(device, HEARTBEAT_SERVICE_NAME, (void**)client, label, SERVICE_CONSTRUCTOR(heartbeat_client_new), &err);
return err;
}
diff --git a/src/webinspector.c b/src/webinspector.c
index 0be69dd..fea26d4 100644
--- a/src/webinspector.c
+++ b/src/webinspector.c
@@ -113,7 +113,7 @@ webinspector_error_t webinspector_client_new(idevice_t device, lockdownd_service
webinspector_error_t webinspector_client_start_service(idevice_t device, webinspector_client_t * client, const char* label)
{
webinspector_error_t err = WEBINSPECTOR_E_UNKNOWN_ERROR;
- service_client_factory_start_service(device, WEBINSPECTOR_SERVICE_NAME, (void**)client, label, SERVICE_CONSTRUCTOR(webinspector_client_new), (int16_t*)&err);
+ service_client_factory_start_service(device, WEBINSPECTOR_SERVICE_NAME, (void**)client, label, SERVICE_CONSTRUCTOR(webinspector_client_new), &err);
return err;
}