summaryrefslogtreecommitdiff
path: root/lib/gnutls_errors.c
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2009-01-07 17:11:54 +0100
committerSimon Josefsson <simon@josefsson.org>2009-01-07 17:11:54 +0100
commit2154108bb16d7b0301200d2388d1e43aad4860f5 (patch)
tree121879f270c03312ed45b12b0276368f174ecbb5 /lib/gnutls_errors.c
parent819e6cf6dada1facbb3080781d8cf620dcef973c (diff)
downloadgnutls-2154108bb16d7b0301200d2388d1e43aad4860f5.tar.gz
Cleanup logger function type.
Diffstat (limited to 'lib/gnutls_errors.c')
-rw-r--r--lib/gnutls_errors.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/gnutls_errors.c b/lib/gnutls_errors.c
index 5a1f71ac33..0c1960cf3a 100644
--- a/lib/gnutls_errors.c
+++ b/lib/gnutls_errors.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation
+ * Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation
*
* Author: Nikos Mavrogiannopoulos
*
@@ -34,8 +34,6 @@
#define _(String) dgettext (PACKAGE, String)
#define N_(String) gettext_noop (String)
-extern LOG_FUNC _gnutls_log_func;
-
#define ERROR_ENTRY(desc, name, fatal) \
{ desc, #name, name, fatal}
@@ -429,7 +427,6 @@ _gnutls_log (int level, const char *fmt, ...)
{
va_list args;
char str[MAX_LOG_SIZE];
- void (*log_func) (int, const char *) = _gnutls_log_func;
if (_gnutls_log_func == NULL)
return;
@@ -438,7 +435,7 @@ _gnutls_log (int level, const char *fmt, ...)
vsnprintf (str, MAX_LOG_SIZE - 1, fmt, args); /* Flawfinder: ignore */
va_end (args);
- log_func (level, str);
+ _gnutls_log_func (level, str);
}
#ifndef DEBUG