From b4fcb98f52aee850faa22654f10caf62912ecf0c Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Fri, 11 Jan 2013 03:44:59 +0100 Subject: restore: don't use info as variable name (collides with info() function) --- src/restore.c | 12 ++++++------ 1 file 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; -- cgit v1.1-32-gdbae