summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/ideviceinstaller.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/ideviceinstaller.c b/src/ideviceinstaller.c
index 7b088c3..1d3f383 100644
--- a/src/ideviceinstaller.c
+++ b/src/ideviceinstaller.c
@@ -48,7 +48,7 @@
48const char PKG_PATH[] = "PublicStaging"; 48const char PKG_PATH[] = "PublicStaging";
49const char APPARCH_PATH[] = "ApplicationArchives"; 49const char APPARCH_PATH[] = "ApplicationArchives";
50 50
51char *uuid = NULL; 51char *udid = NULL;
52char *options = NULL; 52char *options = NULL;
53char *appid = NULL; 53char *appid = NULL;
54 54
@@ -205,7 +205,7 @@ static void print_usage(int argc, char **argv)
205 printf("Usage: %s OPTIONS\n", (name ? name + 1 : argv[0])); 205 printf("Usage: %s OPTIONS\n", (name ? name + 1 : argv[0]));
206 printf("Manage apps on an iDevice.\n\n"); 206 printf("Manage apps on an iDevice.\n\n");
207 printf 207 printf
208 (" -U, --uuid UUID\tTarget specific device by its 40-digit device UUID.\n" 208 (" -U, --udid UDID\tTarget specific device by its 40-digit device UDID.\n"
209 " -l, --list-apps\tList apps, possible options:\n" 209 " -l, --list-apps\tList apps, possible options:\n"
210 " -o list_user\t- list user apps only (this is the default)\n" 210 " -o list_user\t- list user apps only (this is the default)\n"
211 " -o list_system\t- list system apps only\n" 211 " -o list_system\t- list system apps only\n"
@@ -234,7 +234,7 @@ static void parse_opts(int argc, char **argv)
234{ 234{
235 static struct option longopts[] = { 235 static struct option longopts[] = {
236 {"help", 0, NULL, 'h'}, 236 {"help", 0, NULL, 'h'},
237 {"uuid", 1, NULL, 'U'}, 237 {"udid", 1, NULL, 'U'},
238 {"list-apps", 0, NULL, 'l'}, 238 {"list-apps", 0, NULL, 'l'},
239 {"install", 1, NULL, 'i'}, 239 {"install", 1, NULL, 'i'},
240 {"uninstall", 1, NULL, 'u'}, 240 {"uninstall", 1, NULL, 'u'},
@@ -262,12 +262,12 @@ static void parse_opts(int argc, char **argv)
262 exit(0); 262 exit(0);
263 case 'U': 263 case 'U':
264 if (strlen(optarg) != 40) { 264 if (strlen(optarg) != 40) {
265 printf("%s: invalid UUID specified (length != 40)\n", 265 printf("%s: invalid UDID specified (length != 40)\n",
266 argv[0]); 266 argv[0]);
267 print_usage(argc, argv); 267 print_usage(argc, argv);
268 exit(2); 268 exit(2);
269 } 269 }
270 uuid = strdup(optarg); 270 udid = strdup(optarg);
271 break; 271 break;
272 case 'l': 272 case 'l':
273 list_apps_mode = 1; 273 list_apps_mode = 1;
@@ -341,7 +341,7 @@ int main(int argc, char **argv)
341 argc -= optind; 341 argc -= optind;
342 argv += optind; 342 argv += optind;
343 343
344 if (IDEVICE_E_SUCCESS != idevice_new(&phone, uuid)) { 344 if (IDEVICE_E_SUCCESS != idevice_new(&phone, udid)) {
345 fprintf(stderr, "No iPhone found, is it plugged in?\n"); 345 fprintf(stderr, "No iPhone found, is it plugged in?\n");
346 return -1; 346 return -1;
347 } 347 }
@@ -1178,8 +1178,8 @@ run_again:
1178 } 1178 }
1179 idevice_free(phone); 1179 idevice_free(phone);
1180 1180
1181 if (uuid) { 1181 if (udid) {
1182 free(uuid); 1182 free(udid);
1183 } 1183 }
1184 if (appid) { 1184 if (appid) {
1185 free(appid); 1185 free(appid);