summaryrefslogtreecommitdiffstats
path: root/src/SBServices.c
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2010-01-13 01:13:36 +0100
committerGravatar Martin Szulecki2010-01-13 01:25:31 +0100
commitfae09a370b6d2a3b8b2d6fbfe8895736a20079a6 (patch)
treeadd09c0ee02eae89be49b6ffa94ed300cbae7159 /src/SBServices.c
parent1c0b59ff3b993adeb0bcbf87f345ce5db6e0deb2 (diff)
downloadlibimobiledevice-fae09a370b6d2a3b8b2d6fbfe8895736a20079a6.tar.gz
libimobiledevice-fae09a370b6d2a3b8b2d6fbfe8895736a20079a6.tar.bz2
sbservices: use correct type for port parameter and rename it
Diffstat (limited to 'src/SBServices.c')
-rw-r--r--src/SBServices.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/SBServices.c b/src/SBServices.c
index 7b6d3c8..69c7425 100644
--- a/src/SBServices.c
+++ b/src/SBServices.c
@@ -79,14 +79,14 @@ static sbservices_error_t sbservices_error(property_list_service_error_t err)
* Creates a new sbservices client.
*
* @param device The device to connect to.
- * @param dst_port The port on device to connect to.
+ * @param port The port on device to connect to.
* @param client Pointer that will point to a newly allocated
* sbservices_client_t upon successful return.
*
* @return SBSERVICES_E_SUCCESS on success, SBSERVICES_E_INVALID_ARG when
* client is NULL, or an SBSERVICES_E_* error code otherwise.
*/
-sbservices_error_t sbservices_client_new(iphone_device_t device, int dst_port, sbservices_client_t *client)
+sbservices_error_t sbservices_client_new(iphone_device_t device, uint16_t port, sbservices_client_t *client)
{
/* makes sure thread environment is available */
if (!g_thread_supported())
@@ -96,7 +96,7 @@ sbservices_error_t sbservices_client_new(iphone_device_t device, int dst_port, s
return SBSERVICES_E_INVALID_ARG;
property_list_service_client_t plistclient = NULL;
- sbservices_error_t err = sbservices_error(property_list_service_client_new(device, dst_port, &plistclient));
+ sbservices_error_t err = sbservices_error(property_list_service_client_new(device, port, &plistclient));
if (err != SBSERVICES_E_SUCCESS) {
return err;
}