summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2013-01-11 03:44:59 +0100
committerGravatar Nikias Bassen2013-01-11 03:44:59 +0100
commitb4fcb98f52aee850faa22654f10caf62912ecf0c (patch)
tree4b5cbe6170d411c6450926c5e90e2a5a023ee3c6 /src
parent34906648182cfa53c0158b34f582393cf53d7eb8 (diff)
downloadidevicerestore-b4fcb98f52aee850faa22654f10caf62912ecf0c.tar.gz
idevicerestore-b4fcb98f52aee850faa22654f10caf62912ecf0c.tar.bz2
restore: don't use info as variable name (collides with info() function)
Diffstat (limited to 'src')
-rw-r--r--src/restore.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/restore.c b/src/restore.c
index e02d600..720c149 100644
--- a/src/restore.c
+++ b/src/restore.c
@@ -140,17 +140,17 @@ static int restore_idevice_new(struct idevicerestore_client_t* client, idevice_t
if (client->ecid != 0) {
plist_t node = NULL;
- plist_t info = NULL;
+ plist_t hwinfo = NULL;
- if (restored_query_value(restore, "HardwareInfo", &info) != RESTORE_E_SUCCESS) {
+ if (restored_query_value(restore, "HardwareInfo", &hwinfo) != RESTORE_E_SUCCESS) {
continue;
}
- node = plist_dict_get_item(info, "UniqueChipID");
+ node = plist_dict_get_item(hwinfo, "UniqueChipID");
if (!node || plist_get_node_type(node) != PLIST_UINT) {
- if (info) {
- plist_free(info);
+ if (hwinfo) {
+ plist_free(hwinfo);
}
continue;
}
@@ -159,7 +159,7 @@ static int restore_idevice_new(struct idevicerestore_client_t* client, idevice_t
uint64_t this_ecid = 0;
plist_get_uint_val(node, &this_ecid);
- plist_free(info);
+ plist_free(hwinfo);
if (this_ecid != client->ecid) {
continue;