From b538b606da7f4e10ec2a60046c726dc74b6e030f Mon Sep 17 00:00:00 2001 From: Martin Willi Date: Wed, 16 Sep 2009 13:16:00 +0200 Subject: Use the default debug hook if possible --- src/charon/plugins/sql/pool.c | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'src/charon/plugins/sql') diff --git a/src/charon/plugins/sql/pool.c b/src/charon/plugins/sql/pool.c index 55d82dac7..68c2dac48 100644 --- a/src/charon/plugins/sql/pool.c +++ b/src/charon/plugins/sql/pool.c @@ -589,22 +589,6 @@ static void cleanup(void) DESTROY_IF(end); } -/** - * Logging hook for library logs, using stderr output - */ -static void dbg_stderr(int level, char *fmt, ...) -{ - va_list args; - - if (level <= 1) - { - va_start(args, fmt); - vfprintf(stderr, fmt, args); - fprintf(stderr, "\n"); - va_end(args); - } -} - int main(int argc, char *argv[]) { char *uri, *name = "", *filter = ""; @@ -620,7 +604,6 @@ int main(int argc, char *argv[]) OP_PURGE, } operation = OP_USAGE; - dbg = dbg_stderr; atexit(library_deinit); /* initialize library */ -- cgit v1.2.3