diff options
| author | 2010-01-25 15:35:07 +0100 | |
|---|---|---|
| committer | 2010-01-25 15:35:07 +0100 | |
| commit | 0f4ad590f2ca1d87e6383cd423db9446a01f5441 (patch) | |
| tree | 992fffa8ae44cfdca39c8a5f30eb018c8fd60b3b /tools | |
| parent | 57d2586abd946b019095841038afb323026bfc16 (diff) | |
| download | libimobiledevice-0f4ad590f2ca1d87e6383cd423db9446a01f5441.tar.gz libimobiledevice-0f4ad590f2ca1d87e6383cd423db9446a01f5441.tar.bz2 | |
iphonebackup: Add _new to Info.plist factory helper name
This better reflects that a newly allocated plist_t is returned.
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/iphonebackup.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/iphonebackup.c b/tools/iphonebackup.c index c5ac49d..c073616 100644 --- a/tools/iphonebackup.c +++ b/tools/iphonebackup.c | |||
| @@ -44,7 +44,7 @@ enum cmd_mode { | |||
| 44 | CMD_LEAVE | 44 | CMD_LEAVE |
| 45 | }; | 45 | }; |
| 46 | 46 | ||
| 47 | static plist_t mobilebackup_factory_info_plist() | 47 | static plist_t mobilebackup_factory_info_plist_new() |
| 48 | { | 48 | { |
| 49 | /* gather data from lockdown */ | 49 | /* gather data from lockdown */ |
| 50 | GTimeVal tv = {0, 0}; | 50 | GTimeVal tv = {0, 0}; |
| @@ -356,7 +356,7 @@ int main(int argc, char *argv[]) | |||
| 356 | 356 | ||
| 357 | /* create Info.plist (Device infos, IC-Info.sidb, photos, app_ids, iTunesPrefs) */ | 357 | /* create Info.plist (Device infos, IC-Info.sidb, photos, app_ids, iTunesPrefs) */ |
| 358 | printf("Creating \"%s/Info.plist\".\n", backup_directory); | 358 | printf("Creating \"%s/Info.plist\".\n", backup_directory); |
| 359 | plist_t info_plist = mobilebackup_factory_info_plist(); | 359 | plist_t info_plist = mobilebackup_factory_info_plist_new(); |
| 360 | if (stat(info_path, &st) == 0) | 360 | if (stat(info_path, &st) == 0) |
| 361 | remove(info_path); | 361 | remove(info_path); |
| 362 | plist_write_to_filename(info_plist, info_path, PLIST_FORMAT_XML); | 362 | plist_write_to_filename(info_plist, info_path, PLIST_FORMAT_XML); |
