diff options
| -rw-r--r-- | dev/afccheck.c | 2 | ||||
| -rw-r--r-- | dev/iphoneclient.c | 6 | ||||
| -rw-r--r-- | dev/lckdclient.c | 2 | ||||
| -rw-r--r-- | dev/msyncclient.c | 2 | ||||
| -rw-r--r-- | include/libiphone/lockdown.h | 2 | ||||
| -rw-r--r-- | src/lockdown.c | 4 | ||||
| -rw-r--r-- | swig/iphone.i | 2 | ||||
| -rw-r--r-- | tools/iphonesyslog.c | 2 |
8 files changed, 11 insertions, 11 deletions
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[]) | |||
| 93 | lockdownd_client_t client = NULL; | 93 | lockdownd_client_t client = NULL; |
| 94 | iphone_device_t phone = NULL; | 94 | iphone_device_t phone = NULL; |
| 95 | GError *err; | 95 | GError *err; |
| 96 | int port = 0; | 96 | uint16_t port = 0; |
| 97 | afc_client_t afc = NULL; | 97 | afc_client_t afc = NULL; |
| 98 | 98 | ||
| 99 | if (argc > 1 && !strcasecmp(argv[1], "--debug")) { | 99 | 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) | |||
| 39 | 39 | ||
| 40 | static void perform_notification(iphone_device_t phone, lockdownd_client_t client, const char *notification) | 40 | static void perform_notification(iphone_device_t phone, lockdownd_client_t client, const char *notification) |
| 41 | { | 41 | { |
| 42 | int nport = 0; | 42 | uint16_t nport = 0; |
| 43 | np_client_t np; | 43 | np_client_t np; |
| 44 | 44 | ||
| 45 | lockdownd_start_service(client, "com.apple.mobile.notification_proxy", &nport); | 45 | 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 | |||
| 59 | int main(int argc, char *argv[]) | 59 | int main(int argc, char *argv[]) |
| 60 | { | 60 | { |
| 61 | unsigned int bytes = 0; | 61 | unsigned int bytes = 0; |
| 62 | int port = 0, i = 0; | 62 | uint16_t port = 0, i = 0; |
| 63 | int npp; | 63 | uint16_t npp; |
| 64 | lockdownd_client_t client = NULL; | 64 | lockdownd_client_t client = NULL; |
| 65 | iphone_device_t phone = NULL; | 65 | iphone_device_t phone = NULL; |
| 66 | uint64_t lockfile = 0; | 66 | 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[]) | |||
| 92 | } | 92 | } |
| 93 | 93 | ||
| 94 | if (!strcmp(*args, "start") && len == 2) { | 94 | if (!strcmp(*args, "start") && len == 2) { |
| 95 | int port = 0; | 95 | uint16_t port = 0; |
| 96 | if(LOCKDOWN_E_SUCCESS == lockdownd_start_service(client, *(args + 1), &port)) { | 96 | if(LOCKDOWN_E_SUCCESS == lockdownd_start_service(client, *(args + 1), &port)) { |
| 97 | printf("started service %s on port %i\n", *(args + 1), port); | 97 | printf("started service %s on port %i\n", *(args + 1), port); |
| 98 | } | 98 | } |
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 | |||
| 141 | 141 | ||
| 142 | int main(int argc, char *argv[]) | 142 | int main(int argc, char *argv[]) |
| 143 | { | 143 | { |
| 144 | int port = 0; | 144 | uint16_t port = 0; |
| 145 | lockdownd_client_t client = NULL; | 145 | lockdownd_client_t client = NULL; |
| 146 | iphone_device_t phone = NULL; | 146 | iphone_device_t phone = NULL; |
| 147 | 147 | ||
diff --git a/include/libiphone/lockdown.h b/include/libiphone/lockdown.h index fb6b0c6..7fa5384 100644 --- a/include/libiphone/lockdown.h +++ b/include/libiphone/lockdown.h | |||
| @@ -73,7 +73,7 @@ lockdownd_error_t lockdownd_query_type(lockdownd_client_t client, char **type); | |||
| 73 | lockdownd_error_t lockdownd_get_value(lockdownd_client_t client, const char *domain, const char *key, plist_t *value); | 73 | lockdownd_error_t lockdownd_get_value(lockdownd_client_t client, const char *domain, const char *key, plist_t *value); |
| 74 | lockdownd_error_t lockdownd_set_value(lockdownd_client_t client, const char *domain, const char *key, plist_t value); | 74 | lockdownd_error_t lockdownd_set_value(lockdownd_client_t client, const char *domain, const char *key, plist_t value); |
| 75 | lockdownd_error_t lockdownd_remove_value(lockdownd_client_t client, const char *domain, const char *key); | 75 | lockdownd_error_t lockdownd_remove_value(lockdownd_client_t client, const char *domain, const char *key); |
| 76 | lockdownd_error_t lockdownd_start_service(lockdownd_client_t client, const char *service, int *port); | 76 | lockdownd_error_t lockdownd_start_service(lockdownd_client_t client, const char *service, uint16_t *port); |
| 77 | lockdownd_error_t lockdownd_start_session(lockdownd_client_t client, const char *host_id, char **session_id, int *ssl_enabled); | 77 | lockdownd_error_t lockdownd_start_session(lockdownd_client_t client, const char *host_id, char **session_id, int *ssl_enabled); |
| 78 | lockdownd_error_t lockdownd_stop_session(lockdownd_client_t client, const char *session_id); | 78 | lockdownd_error_t lockdownd_stop_session(lockdownd_client_t client, const char *session_id); |
| 79 | lockdownd_error_t lockdownd_send(lockdownd_client_t client, plist_t plist); | 79 | lockdownd_error_t lockdownd_send(lockdownd_client_t client, plist_t plist); |
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 | |||
| 1207 | 1207 | ||
| 1208 | * @return an error code (LOCKDOWN_E_SUCCESS on success) | 1208 | * @return an error code (LOCKDOWN_E_SUCCESS on success) |
| 1209 | */ | 1209 | */ |
| 1210 | lockdownd_error_t lockdownd_start_service(lockdownd_client_t client, const char *service, int *port) | 1210 | lockdownd_error_t lockdownd_start_service(lockdownd_client_t client, const char *service, uint16_t *port) |
| 1211 | { | 1211 | { |
| 1212 | if (!client || !service || !port) | 1212 | if (!client || !service || !port) |
| 1213 | return LOCKDOWN_E_INVALID_ARG; | 1213 | return LOCKDOWN_E_INVALID_ARG; |
| @@ -1220,7 +1220,7 @@ lockdownd_error_t lockdownd_start_service(lockdownd_client_t client, const char | |||
| 1220 | return LOCKDOWN_E_NO_RUNNING_SESSION; | 1220 | return LOCKDOWN_E_NO_RUNNING_SESSION; |
| 1221 | 1221 | ||
| 1222 | plist_t dict = NULL; | 1222 | plist_t dict = NULL; |
| 1223 | uint32_t port_loc = 0; | 1223 | uint16_t port_loc = 0; |
| 1224 | lockdownd_error_t ret = LOCKDOWN_E_UNKNOWN_ERROR; | 1224 | lockdownd_error_t ret = LOCKDOWN_E_UNKNOWN_ERROR; |
| 1225 | 1225 | ||
| 1226 | free(host_id); | 1226 | free(host_id); |
diff --git a/swig/iphone.i b/swig/iphone.i index de6b80f..f1969ed 100644 --- a/swig/iphone.i +++ b/swig/iphone.i | |||
| @@ -85,7 +85,7 @@ void my_delete_Lockdownd(Lockdownd* lckd) { | |||
| 85 | MobileSync* my_new_MobileSync(Lockdownd* lckd) { | 85 | MobileSync* my_new_MobileSync(Lockdownd* lckd) { |
| 86 | if (!lckd || !lckd->dev) return NULL; | 86 | if (!lckd || !lckd->dev) return NULL; |
| 87 | MobileSync* client = NULL; | 87 | MobileSync* client = NULL; |
| 88 | int port = 0; | 88 | uint16_t port = 0; |
| 89 | if (LOCKDOWN_E_SUCCESS == lockdownd_start_service(lckd->client, "com.apple.mobilesync", &port)) { | 89 | if (LOCKDOWN_E_SUCCESS == lockdownd_start_service(lckd->client, "com.apple.mobilesync", &port)) { |
| 90 | client = (MobileSync*) malloc(sizeof(MobileSync)); | 90 | client = (MobileSync*) malloc(sizeof(MobileSync)); |
| 91 | client->dev = lckd->dev; | 91 | client->dev = lckd->dev; |
diff --git a/tools/iphonesyslog.c b/tools/iphonesyslog.c index 195fc7c..017956e 100644 --- a/tools/iphonesyslog.c +++ b/tools/iphonesyslog.c | |||
| @@ -49,7 +49,7 @@ int main(int argc, char *argv[]) | |||
| 49 | iphone_error_t ret = IPHONE_E_UNKNOWN_ERROR; | 49 | iphone_error_t ret = IPHONE_E_UNKNOWN_ERROR; |
| 50 | int i; | 50 | int i; |
| 51 | char uuid[41]; | 51 | char uuid[41]; |
| 52 | int port = 0; | 52 | uint16_t port = 0; |
| 53 | uuid[0] = 0; | 53 | uuid[0] = 0; |
| 54 | 54 | ||
| 55 | signal(SIGINT, clean_exit); | 55 | signal(SIGINT, clean_exit); |
