summaryrefslogtreecommitdiffstats
path: root/common/userpref.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/userpref.c')
-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)
210 * 210 *
211 * @return A null terminated string containing a valid HostID. 211 * @return A null terminated string containing a valid HostID.
212 */ 212 */
213static char *userpref_generate_host_id(int index) 213static char *userpref_generate_host_id(int idx)
214{ 214{
215 /* HostID's are just UUID's, and UUID's are 36 characters long */ 215 /* HostID's are just UUID's, and UUID's are 36 characters long */
216 char *hostid = (char *) malloc(sizeof(char) * 37); 216 char *hostid = (char *) malloc(sizeof(char) * 37);
217 const char *chars = "ABCDEF0123456789"; 217 const char *chars = "ABCDEF0123456789";
218 srand(time(NULL) - index); 218 srand(time(NULL) - idx);
219 int i = 0; 219 int i = 0;
220 220
221 for (i = 0; i < 36; i++) { 221 for (i = 0; i < 36; i++) {