From 933478d7b150c5936dc366bcf47853111e7e63d3 Mon Sep 17 00:00:00 2001 From: Kevin Easton Date: Wed, 16 Oct 2013 11:59:36 +0000 Subject: [PATCH] Rename cavlink's randm() function to cav_randm() so that it doesn't clash with the definition from ircaux.h. git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@396 13b04d17-f746-0410-82c6-800466cd88b0 --- dll/cavlink/cavlink.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dll/cavlink/cavlink.c b/dll/cavlink/cavlink.c index f3bfbab..9adf54e 100644 --- a/dll/cavlink/cavlink.c +++ b/dll/cavlink/cavlink.c @@ -439,7 +439,7 @@ int i; return 1; } -static unsigned long randm (unsigned long l) +static unsigned long cav_randm (unsigned long l) { unsigned long t1, t2, t; struct timeval tp1; @@ -466,9 +466,9 @@ char *text = NULL; text = alloca(100); for (i = 0; i < repcount; i++) { - snprintf(buffer, IRCD_BUFFER_SIZE, "%ld%ld%ld %ld%ld%ld %ld%ld%ld %ld%ld%ld", randm(time(NULL))+i, randm(time(NULL))+i, time(NULL)+i, randm(time(NULL))+i, randm(time(NULL))+i, time(NULL)+i, randm(time(NULL))+i, randm(time(NULL))+i, time(NULL)+i, randm(time(NULL))+i, randm(time(NULL))+i, time(NULL)+i); - for (i = 0; i < randm(80); i++) - text[i] = randm(255)+1; + snprintf(buffer, IRCD_BUFFER_SIZE, "%ld%ld%ld %ld%ld%ld %ld%ld%ld %ld%ld%ld", cav_randm(time(NULL))+i, cav_randm(time(NULL))+i, time(NULL)+i, cav_randm(time(NULL))+i, cav_randm(time(NULL))+i, time(NULL)+i, cav_randm(time(NULL))+i, cav_randm(time(NULL))+i, time(NULL)+i, cav_randm(time(NULL))+i, cav_randm(time(NULL))+i, time(NULL)+i); + for (i = 0; i < cav_randm(80); i++) + text[i] = cav_randm(255)+1; snprintf(buffer, IRCD_BUFFER_SIZE, "PRIVMSG %s :DCC SEND %s 2293243493 8192 6978632", target, text); my_send_to_server(server, buffer); }