summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2010-11-28 15:51:55 +0100
committerGravatar Martin Szulecki2011-04-11 19:42:18 +0200
commit5efbd488e0d906de2dbb997f8345876fdc5265f3 (patch)
tree3d611d7405291a9f2c7ba821c4411adc19ec590c
parent336e090a48815e92844c2f1d3acfc4992a8ee5fb (diff)
downloadlibimobiledevice-5efbd488e0d906de2dbb997f8345876fdc5265f3.tar.gz
libimobiledevice-5efbd488e0d906de2dbb997f8345876fdc5265f3.tar.bz2
idevicebackup4: remove unused manifest_path variable
-rw-r--r--tools/idevicebackup4.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/tools/idevicebackup4.c b/tools/idevicebackup4.c
index aaf5fcb..ae63feb 100644
--- a/tools/idevicebackup4.c
+++ b/tools/idevicebackup4.c
@@ -1194,7 +1194,6 @@ int main(int argc, char *argv[])
1194 //enum device_link_file_status_t file_status = DEVICE_LINK_FILE_STATUS_NONE; 1194 //enum device_link_file_status_t file_status = DEVICE_LINK_FILE_STATUS_NONE;
1195// uint64_t c = 0; 1195// uint64_t c = 0;
1196 mobilebackup2_error_t err; 1196 mobilebackup2_error_t err;
1197 char *manifest_path = NULL;
1198 1197
1199 /* we need to exit cleanly on running backups and restores or we cause havok */ 1198 /* we need to exit cleanly on running backups and restores or we cause havok */
1200 signal(SIGINT, clean_exit); 1199 signal(SIGINT, clean_exit);
@@ -1413,9 +1412,6 @@ int main(int argc, char *argv[])
1413 } 1412 }
1414 } 1413 }
1415 1414
1416 /* Manifest.plist (backup manifest (backup state)) */
1417 manifest_path = g_build_path(G_DIR_SEPARATOR_S, backup_directory, uuid, "Manifest.plist", NULL);
1418
1419checkpoint: 1415checkpoint:
1420 1416
1421 switch(cmd) { 1417 switch(cmd) {
@@ -1834,8 +1830,6 @@ files_out:
1834 //mobilebackup_send_error(mobilebackup, "Cancelling DLSendFile"); 1830 //mobilebackup_send_error(mobilebackup, "Cancelling DLSendFile");
1835 1831
1836 /* remove any atomic Manifest.plist.tmp */ 1832 /* remove any atomic Manifest.plist.tmp */
1837 if (manifest_path)
1838 g_free(manifest_path);
1839 1833
1840 /*manifest_path = mobilebackup_build_path(backup_directory, "Manifest", ".plist.tmp"); 1834 /*manifest_path = mobilebackup_build_path(backup_directory, "Manifest", ".plist.tmp");
1841 if (stat(manifest_path, &st) == 0) 1835 if (stat(manifest_path, &st) == 0)
@@ -1895,8 +1889,6 @@ files_out:
1895 lockfile = 0; 1889 lockfile = 0;
1896 do_post_notification(NP_SYNC_DID_FINISH); 1890 do_post_notification(NP_SYNC_DID_FINISH);
1897 } 1891 }
1898 if (manifest_path)
1899 g_free(manifest_path);
1900 } else { 1892 } else {
1901 printf("ERROR: Could not start service %s.\n", MOBILEBACKUP2_SERVICE_NAME); 1893 printf("ERROR: Could not start service %s.\n", MOBILEBACKUP2_SERVICE_NAME);
1902 lockdownd_client_free(client); 1894 lockdownd_client_free(client);