summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2012-11-29 03:56:57 +0100
committerGravatar Nikias Bassen2012-11-29 03:56:57 +0100
commitd28cb6b2b85bbaf97ae361aba531865e5bcaa898 (patch)
treec1cc95c3614ab0c3472b09cb374b347b555b46ac /src
parent1d3cadcb5404da2f37cd253b3204c97c186769b3 (diff)
downloadlibimobiledevice-d28cb6b2b85bbaf97ae361aba531865e5bcaa898.tar.gz
libimobiledevice-d28cb6b2b85bbaf97ae361aba531865e5bcaa898.tar.bz2
idevice: use 'dev' instead of 'phone' as variable name
Diffstat (limited to 'src')
-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 */