# HG changeset patch # User Matti Hamalainen # Date 1337966505 -10800 # Node ID 708a15fdf791572f810796fe1bb9bc1cc50b21f0 # Parent 691400f1c9bbee21377625ac0d8be3851934ed08 Fix a type / conversion related warning. diff -r 691400f1c9bb -r 708a15fdf791 main.c --- a/main.c Fri May 25 20:18:24 2012 +0300 +++ b/main.c Fri May 25 20:21:45 2012 +0300 @@ -2274,7 +2274,7 @@ time_t tmpTime = time(NULL); if (tmpTime - prevTime > SET_KEEPALIVE) { - int n = random() % th_llist_length(setIdleMessages); + size_t n = ((size_t) random()) % th_llist_length(setIdleMessages); qlist_t *node = th_llist_get_nth(setIdleMessages, n); nn_conn_send_msg(conn, optUserNameEnc, node->data); prevTime = tmpTime;