summaryrefslogtreecommitdiffstats
path: root/src/MobileSync.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/MobileSync.c')
-rw-r--r--src/MobileSync.c6
1 files changed, 3 insertions, 3 deletions
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;
}