summaryrefslogtreecommitdiffstats
path: root/dev
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2013-09-11 12:25:23 +0200
committerGravatar Martin Szulecki2013-09-11 12:25:23 +0200
commita7232424c25a105ba78fb378db4b4db9e72afc4a (patch)
treee9ed6a7c87f5e37e3ba4513e2b7e5f0795d60004 /dev
parent3e5a7290e79779321cd8901bbd5091a5ea7132f6 (diff)
downloadlibimobiledevice-a7232424c25a105ba78fb378db4b4db9e72afc4a.tar.gz
libimobiledevice-a7232424c25a105ba78fb378db4b4db9e72afc4a.tar.bz2
filerelaytest: Variable can not be declared inside for loop on non C99 mode
Diffstat (limited to 'dev')
-rw-r--r--dev/filerelaytest.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/dev/filerelaytest.c b/dev/filerelaytest.c
index 0f2f117..b19bbd7 100644
--- a/dev/filerelaytest.c
+++ b/dev/filerelaytest.c
@@ -30,6 +30,10 @@ int main(int argc, char **argv)
lockdownd_client_t client = NULL;
lockdownd_service_descriptor_t service = NULL;
file_relay_client_t frc = NULL;
+ idevice_connection_t dump = NULL;
+ const char **sources;
+ const char *default_sources[] = {"AppleSupport", "Network", "VPN", "WiFi", "UserDatabases", "CrashReporter", "tmp", "SystemConfiguration", NULL};
+ int i = 0;
if (idevice_new(&dev, NULL) != IDEVICE_E_SUCCESS) {
printf("no device connected?!\n");
@@ -62,15 +66,11 @@ int main(int argc, char **argv)
service = NULL;
}
- idevice_connection_t dump = NULL;
- const char **sources;
- const char *default_sources[] = {"AppleSupport", "Network", "VPN", "WiFi", "UserDatabases", "CrashReporter", "tmp", "SystemConfiguration", NULL};
-
if (argc > 1) {
sources = calloc(1, argc * sizeof(char *));
argc--;
argv++;
- for (int i = 0; i < argc; i++) {
+ for (i = 0; i < argc; i++) {
sources[i] = argv[i];
}
}
@@ -79,7 +79,7 @@ int main(int argc, char **argv)
}
printf("Requesting");
- int i = 0;
+ i = 0;
while (sources[i]) {
printf(" %s", sources[i]);
i++;