summaryrefslogtreecommitdiff
path: root/nslcd/ldap-nss.h
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2006-12-29 10:04:15 +0000
committerArthur de Jong <arthur@arthurdejong.org>2006-12-29 10:04:15 +0000
commit18455c1e7e2bc1eb80dbfda1b277141e2da9a088 (patch)
tree477f3b72f8b3328486986deaf600033410e6bfae /nslcd/ldap-nss.h
parente5a71411f3cab38fd8222c6a51d4791c330d5de7 (diff)
get rid of debug() function and call log_log() instead
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@205 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'nslcd/ldap-nss.h')
-rw-r--r--nslcd/ldap-nss.h28
1 files changed, 0 insertions, 28 deletions
diff --git a/nslcd/ldap-nss.h b/nslcd/ldap-nss.h
index 337de91..b1d01ac 100644
--- a/nslcd/ldap-nss.h
+++ b/nslcd/ldap-nss.h
@@ -56,34 +56,6 @@
#define LDAPS_PORT 636
#endif /* not LDAPS_PORT */
-#ifdef DEBUG
-#ifdef __XGNUC__
-#define debug(fmt, args...) fprintf(stderr, "nss_ldap: " fmt "\n" , ## args)
-#else
-#include <stdarg.h>
-#include <stdio.h>
-static void
-debug (char *fmt, ...)
-{
- va_list ap;
- va_start (ap, fmt);
- fprintf (stderr, "nss_ldap: ");
- vfprintf (stderr, fmt, ap);
- va_end (ap);
- fprintf (stderr, "\n");
-}
-#endif /* __GNUC__ */
-#else /* DEBUG */
-#ifdef __GNUC__
-#define debug(fmt, args...)
-#else /* __GNUC__ */
-static void
-debug (char *fmt, ...)
-{
-}
-#endif /* not __GNUC__ */
-#endif /* not DEBUG */
-
#ifdef __GNUC__
#define alignof(ptr) __alignof__(ptr)
#elif defined(HAVE_ALIGNOF_H)