diff options
author | David Sommerseth <dazo@users.sourceforge.net> | 2009-03-26 00:15:04 +0100 |
---|---|---|
committer | David Sommerseth <dazo@users.sourceforge.net> | 2009-03-26 00:15:04 +0100 |
commit | 74a1e62e59bd821f975c6e1cdebfb77c7b3a8ac4 (patch) | |
tree | 26a82d9f8008d446147176478ea79d74d5b7e0dd /database/eurephiadb.c | |
parent | dd6b7e31e9d0e38a15cb49b1a09036bf65531774 (diff) | |
download | eurephia-74a1e62e59bd821f975c6e1cdebfb77c7b3a8ac4.tar.gz eurephia-74a1e62e59bd821f975c6e1cdebfb77c7b3a8ac4.tar.xz eurephia-74a1e62e59bd821f975c6e1cdebfb77c7b3a8ac4.zip |
Cleaned up the code a little bit
Made sure we only include needed include files and checked that
the copyright headers are equal and correct
Diffstat (limited to 'database/eurephiadb.c')
-rw-r--r-- | database/eurephiadb.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/database/eurephiadb.c b/database/eurephiadb.c index 3331362..4192475 100644 --- a/database/eurephiadb.c +++ b/database/eurephiadb.c @@ -1,6 +1,7 @@ /* eurephiadb.c -- Loads and initialises the database driver * - * GPLv2 - Copyright (C) 2008 David Sommerseth <dazo@users.sourceforge.net> + * GPLv2 - Copyright (C) 2008, 2009 + * David Sommerseth <dazo@users.sourceforge.net> * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License @@ -19,20 +20,13 @@ */ #include <stdio.h> -#include <stdlib.h> -#include <string.h> #include <dlfcn.h> -#include <stdarg.h> #include "eurephia_nullsafe.h" #include "eurephiadb_driver.h" #include "eurephia_log.h" #include "eurephia_getsym.h" -#ifdef MEMWATCH -#include <memwatch.h> -#endif - int eDBlink_close(eurephiaCTX *ctx) { @@ -51,10 +45,6 @@ int eDBlink_close(eurephiaCTX *ctx) int eDBlink_init(eurephiaCTX *ctx, const char *dbl, const int minver) { -#ifdef MEMWATCH - mwStatistics(3); -#endif - if( dbl == NULL ) { eurephia_log(ctx, LOG_FATAL, 0, "No eurephia eDBlink driver given. " "eurephia authentication will not be available"); |