summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2013-09-27 13:32:46 +0200
committerGravatar Nikias Bassen2013-09-27 13:32:46 +0200
commit185eb2f49e4d038d1b16d37b0914ffba4a67f866 (patch)
tree6c8a0d6cfa1de8a01fd3740d41223ef19d283eab /common
parentb9fecbe1c6e24be29ff510d7128763b900147416 (diff)
downloadlibimobiledevice-185eb2f49e4d038d1b16d37b0914ffba4a67f866.tar.gz
libimobiledevice-185eb2f49e4d038d1b16d37b0914ffba4a67f866.tar.bz2
userpref: rename 'index' parameter to silece compiler warning on the Pi
Diffstat (limited to 'common')
-rw-r--r--common/userpref.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/userpref.c b/common/userpref.c
index b9920ca..d84cdac 100644
--- a/common/userpref.c
+++ b/common/userpref.c
@@ -210,12 +210,12 @@ static int get_rand(int min, int max)
*
* @return A null terminated string containing a valid HostID.
*/
-static char *userpref_generate_host_id(int index)
+static char *userpref_generate_host_id(int idx)
{
/* HostID's are just UUID's, and UUID's are 36 characters long */
char *hostid = (char *) malloc(sizeof(char) * 37);
const char *chars = "ABCDEF0123456789";
- srand(time(NULL) - index);
+ srand(time(NULL) - idx);
int i = 0;
for (i = 0; i < 36; i++) {