From 87ecbec79dfc02abcaaf3ce2c04b848e968748da Mon Sep 17 00:00:00 2001 From: cyberbotx Date: Tue, 7 Apr 2009 05:31:14 +0000 Subject: Remove all remaining uses of (My)SQL from the code. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2267 5417fbe8-f217-4b02-8779-1006273d7864 --- src/main.c | 2 +- src/misc.c | 8 -------- 2 files changed, 1 insertion(+), 9 deletions(-) (limited to 'src') diff --git a/src/main.c b/src/main.c index 8484eeea1..cd3c9e117 100644 --- a/src/main.c +++ b/src/main.c @@ -89,7 +89,7 @@ const char version_number_dotted[] = VERSION_STRING_DOTTED; const char version_build[] = "build #" BUILD ", compiled " __DATE__ " " __TIME__; /* the space is needed cause if you build with nothing it will complain */ -const char version_flags[] = " " VER_OS VER_MYSQL VER_MODULE; +const char version_flags[] = " " VER_OS VER_MODULE; /******** Local variables! ********/ diff --git a/src/misc.c b/src/misc.c index 591cd1181..b1ab62e32 100644 --- a/src/misc.c +++ b/src/misc.c @@ -882,9 +882,6 @@ void rand_init() int n, fd; #endif struct { -#ifdef USE_MYSQL - int sqlrand; -#endif #ifndef _WIN32 struct timeval nowt; /* time */ char rnd[32]; /* /dev/urandom */ @@ -896,11 +893,6 @@ void rand_init() arc4_init(); - /* Grab "random" MYSQL data */ -#ifdef USE_MYSQL - rdat.sqlrand = mysql_rand(); -#endif - /* Grab OS specific "random" data */ #ifndef _WIN32 /* unix/bsd: time */ -- cgit