X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=libraries%2Fliblber%2Fdebug.c;h=a2166f021f622694679a205a5a56d74766ea16a0;hb=0355abeb1a0ea471970c5313a69ce5b20916b408;hp=de6f947145baef3575e5b8fac6ceba184a233631;hpb=dc0eacd40b625258355eea866d62188e5aa7ce3b;p=openldap diff --git a/libraries/liblber/debug.c b/libraries/liblber/debug.c index de6f947145..a2166f021f 100644 --- a/libraries/liblber/debug.c +++ b/libraries/liblber/debug.c @@ -1,7 +1,7 @@ /* $OpenLDAP$ */ /* This work is part of OpenLDAP Software . * - * Copyright 1998-2005 The OpenLDAP Foundation. + * Copyright 1998-2007 The OpenLDAP Foundation. * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -34,23 +34,6 @@ static FILE *log_file = NULL; -#ifdef LDAP_SYSLOG -static int use_syslog = 0; - -static int debug2syslog(int l) { - switch (l) { - case LDAP_LEVEL_EMERG: return LOG_EMERG; - case LDAP_LEVEL_ALERT: return LOG_ALERT; - case LDAP_LEVEL_CRIT: return LOG_CRIT; - case LDAP_LEVEL_ERR: return LOG_ERR; - case LDAP_LEVEL_WARNING: return LOG_WARNING; - case LDAP_LEVEL_NOTICE: return LOG_NOTICE; - case LDAP_LEVEL_INFO: return LOG_INFO; - } - return LOG_DEBUG; -} -#endif - int lutil_debug_file( FILE *file ) { log_file = file;