diff options
author | Nikias Bassen | 2012-11-29 03:56:57 +0100 |
---|---|---|
committer | Nikias Bassen | 2012-11-29 03:56:57 +0100 |
commit | d28cb6b2b85bbaf97ae361aba531865e5bcaa898 (patch) | |
tree | c1cc95c3614ab0c3472b09cb374b347b555b46ac | |
parent | 1d3cadcb5404da2f37cd253b3204c97c186769b3 (diff) | |
download | libimobiledevice-d28cb6b2b85bbaf97ae361aba531865e5bcaa898.tar.gz libimobiledevice-d28cb6b2b85bbaf97ae361aba531865e5bcaa898.tar.bz2 |
idevice: use 'dev' instead of 'phone' as variable name
-rw-r--r-- | src/idevice.c | 10 |
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 */ |