lists.arthurdejong.org
RSS feed

nss-pam-ldapd commit: r1074 - nss-pam-ldapd/nslcd

[Date Prev][Date Next] [Thread Prev][Thread Next]

nss-pam-ldapd commit: r1074 - nss-pam-ldapd/nslcd



Author: arthur
Date: Sun Feb 28 09:10:26 2010
New Revision: 1074
URL: http://arthurdejong.org/viewvc/nss-pam-ldapd?view=rev&revision=1074

Log:
have less warnings when LDAP_OPT_X_TLS isn't defined

Modified:
   nss-pam-ldapd/nslcd/myldap.c

Modified: nss-pam-ldapd/nslcd/myldap.c
==============================================================================
--- nss-pam-ldapd/nslcd/myldap.c        Sun Feb 28 09:07:26 2010        (r1073)
+++ nss-pam-ldapd/nslcd/myldap.c        Sun Feb 28 09:10:26 2010        (r1074)
@@ -363,7 +363,9 @@
    This returns an LDAP result code. */
 static int do_bind(MYLDAP_SESSION *session,const char *uri)
 {
+#ifdef LDAP_OPT_X_TLS
   int rc;
+#endif /* LDAP_OPT_X_TLS */
 #ifdef HAVE_LDAP_SASL_INTERACTIVE_BIND_S
 #ifndef HAVE_SASL_INTERACT_T
   struct berval cred;
@@ -460,7 +462,9 @@
   /* FIXME: move this to a global initialisation routine */
   int rc;
   struct timeval tv;
+#ifdef LDAP_OPT_X_TLS
   int i;
+#endif /* LDAP_OPT_X_TLS */
 #ifdef HAVE_LDAP_SET_REBIND_PROC
   /* the rebind function that is called when chasing referrals, see
      
http://publib.boulder.ibm.com/infocenter/iseries/v5r3/topic/apis/ldap_set_rebind_proc.htm
--
To unsubscribe send an email to
nss-pam-ldapd-commits-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/nss-pam-ldapd-commits