From 471c997e66015a093afa9146d764d678514fed52 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Wed, 13 Jan 2010 01:45:42 +0100 Subject: lockdown/tools/python: use correct type for port parameter --- dev/afccheck.c | 2 +- dev/iphoneclient.c | 6 +++--- dev/lckdclient.c | 2 +- dev/msyncclient.c | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) (limited to 'dev') diff --git a/dev/afccheck.c b/dev/afccheck.c index 8e11b8a..569acf1 100644 --- a/dev/afccheck.c +++ b/dev/afccheck.c @@ -93,7 +93,7 @@ int main(int argc, char *argv[]) lockdownd_client_t client = NULL; iphone_device_t phone = NULL; GError *err; - int port = 0; + uint16_t port = 0; afc_client_t afc = NULL; if (argc > 1 && !strcasecmp(argv[1], "--debug")) { diff --git a/dev/iphoneclient.c b/dev/iphoneclient.c index eaced60..eab903c 100644 --- a/dev/iphoneclient.c +++ b/dev/iphoneclient.c @@ -39,7 +39,7 @@ static void notifier(const char *notification) static void perform_notification(iphone_device_t phone, lockdownd_client_t client, const char *notification) { - int nport = 0; + uint16_t nport = 0; np_client_t np; lockdownd_start_service(client, "com.apple.mobile.notification_proxy", &nport); @@ -59,8 +59,8 @@ static void perform_notification(iphone_device_t phone, lockdownd_client_t clien int main(int argc, char *argv[]) { unsigned int bytes = 0; - int port = 0, i = 0; - int npp; + uint16_t port = 0, i = 0; + uint16_t npp; lockdownd_client_t client = NULL; iphone_device_t phone = NULL; uint64_t lockfile = 0; diff --git a/dev/lckdclient.c b/dev/lckdclient.c index adf0aaa..7b7604e 100644 --- a/dev/lckdclient.c +++ b/dev/lckdclient.c @@ -92,7 +92,7 @@ int main(int argc, char *argv[]) } if (!strcmp(*args, "start") && len == 2) { - int port = 0; + uint16_t port = 0; if(LOCKDOWN_E_SUCCESS == lockdownd_start_service(client, *(args + 1), &port)) { printf("started service %s on port %i\n", *(args + 1), port); } diff --git a/dev/msyncclient.c b/dev/msyncclient.c index 6134649..c136ef2 100644 --- a/dev/msyncclient.c +++ b/dev/msyncclient.c @@ -141,7 +141,7 @@ static mobilesync_error_t mobilesync_get_all_contacts(mobilesync_client_t client int main(int argc, char *argv[]) { - int port = 0; + uint16_t port = 0; lockdownd_client_t client = NULL; iphone_device_t phone = NULL; -- cgit v1.1-32-gdbae