summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2010-01-13 01:19:52 +0100
committerGravatar Martin Szulecki2010-01-13 01:26:03 +0100
commitbdc857bcd4488b8e135b189022e210b5b841e409 (patch)
tree9e0ee762f8a5ee34bf16e9b63d1f43d71729430e
parent27e59cee36975c40e7dd58f087318dd0aecd86ce (diff)
downloadlibimobiledevice-bdc857bcd4488b8e135b189022e210b5b841e409.tar.gz
libimobiledevice-bdc857bcd4488b8e135b189022e210b5b841e409.tar.bz2
mobilesync: use correct type for port parameter and rename it
-rw-r--r--include/libiphone/mobilesync.h2
-rw-r--r--src/MobileSync.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/include/libiphone/mobilesync.h b/include/libiphone/mobilesync.h
index 662036c..94fbedc 100644
--- a/include/libiphone/mobilesync.h
+++ b/include/libiphone/mobilesync.h
@@ -43,7 +43,7 @@ typedef int16_t mobilesync_error_t;
struct mobilesync_client_int;
typedef struct mobilesync_client_int *mobilesync_client_t;
-mobilesync_error_t mobilesync_client_new(iphone_device_t device, int dst_port, mobilesync_client_t * client);
+mobilesync_error_t mobilesync_client_new(iphone_device_t device, uint16_t port, mobilesync_client_t * client);
mobilesync_error_t mobilesync_client_free(mobilesync_client_t client);
mobilesync_error_t mobilesync_recv(mobilesync_client_t client, plist_t *plist);
mobilesync_error_t mobilesync_send(mobilesync_client_t client, plist_t plist);
diff --git a/src/MobileSync.c b/src/MobileSync.c
index 97a1320..827ed35 100644
--- a/src/MobileSync.c
+++ b/src/MobileSync.c
@@ -59,14 +59,14 @@ static mobilesync_error_t mobilesync_error(device_link_service_error_t err)
return MOBILESYNC_E_UNKNOWN_ERROR;
}
-mobilesync_error_t mobilesync_client_new(iphone_device_t device, int dst_port,
+mobilesync_error_t mobilesync_client_new(iphone_device_t device, uint16_t port,
mobilesync_client_t * client)
{
- if (!device || dst_port == 0 || !client || *client)
+ if (!device || port == 0 || !client || *client)
return MOBILESYNC_E_INVALID_ARG;
device_link_service_client_t dlclient = NULL;
- mobilesync_error_t ret = mobilesync_error(device_link_service_client_new(device, dst_port, &dlclient));
+ mobilesync_error_t ret = mobilesync_error(device_link_service_client_new(device, port, &dlclient));
if (ret != MOBILESYNC_E_SUCCESS) {
return ret;
}