diff options
author | Nikias Bassen | 2010-01-13 01:45:42 +0100 |
---|---|---|
committer | Martin Szulecki | 2010-01-13 01:54:05 +0100 |
commit | 471c997e66015a093afa9146d764d678514fed52 (patch) | |
tree | 70df4bc44ce21ed68c1f246564edeab9543dd3b8 /src | |
parent | 5c19d486959454560515666b0d250c20d9938d00 (diff) | |
download | libimobiledevice-471c997e66015a093afa9146d764d678514fed52.tar.gz libimobiledevice-471c997e66015a093afa9146d764d678514fed52.tar.bz2 |
lockdown/tools/python: use correct type for port parameter
Diffstat (limited to 'src')
-rw-r--r-- | src/lockdown.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lockdown.c b/src/lockdown.c index a85f8ae..1befb72 100644 --- a/src/lockdown.c +++ b/src/lockdown.c @@ -1207,7 +1207,7 @@ lockdownd_error_t lockdownd_start_session(lockdownd_client_t client, const char * @return an error code (LOCKDOWN_E_SUCCESS on success) */ -lockdownd_error_t lockdownd_start_service(lockdownd_client_t client, const char *service, int *port) +lockdownd_error_t lockdownd_start_service(lockdownd_client_t client, const char *service, uint16_t *port) { if (!client || !service || !port) return LOCKDOWN_E_INVALID_ARG; @@ -1220,7 +1220,7 @@ lockdownd_error_t lockdownd_start_service(lockdownd_client_t client, const char return LOCKDOWN_E_NO_RUNNING_SESSION; plist_t dict = NULL; - uint32_t port_loc = 0; + uint16_t port_loc = 0; lockdownd_error_t ret = LOCKDOWN_E_UNKNOWN_ERROR; free(host_id); |