summaryrefslogtreecommitdiffstats
path: root/src/idevice.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/idevice.c')
-rw-r--r--src/idevice.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/idevice.c b/src/idevice.c
index a1cc013..1dd6c0f 100644
--- a/src/idevice.c
+++ b/src/idevice.c
@@ -173,11 +173,11 @@ idevice_error_t idevice_new(idevice_t * device, const char *udid)
usbmuxd_device_info_t muxdev;
int res = usbmuxd_get_device_by_udid(udid, &muxdev);
if (res > 0) {
- idevice_t phone = (idevice_t) malloc(sizeof(struct idevice_private));
- phone->udid = strdup(muxdev.udid);
- phone->conn_type = CONNECTION_USBMUXD;
- phone->conn_data = (void*)(long)muxdev.handle;
- *device = phone;
+ idevice_t dev = (idevice_t) malloc(sizeof(struct idevice_private));
+ dev->udid = strdup(muxdev.udid);
+ dev->conn_type = CONNECTION_USBMUXD;
+ dev->conn_data = (void*)(long)muxdev.handle;
+ *device = dev;
return IDEVICE_E_SUCCESS;
}
/* other connection types could follow here */