]> git.sur5r.net Git - openldap/blobdiff - servers/ldapd/result.c
Fix idl_firstid to return NOID when !(nids > 1) instead of when (nids == 1)
[openldap] / servers / ldapd / result.c
index 22eb9b933ca5c6e0f61c4f7b99f3ed4f62eefcae..498ef4a7013862e29b7762477030abb089c58b94 100644 (file)
 #include <quipu/dua.h>
 
 #include "lber.h"
+#include "../../libraries/liblber/lber-int.h"  /* get struct berelement */
 #include "ldap.h"
 #include "common.h"
 
-extern int     dosyslog;
-#ifdef LDAP_COMPAT
-extern int     ldap_compat;
-#endif
-
 /*
  * dsa_response - called by do_queries() when there is activity on one of
  * the DSA associations.  It is passed the association descriptor on which
@@ -309,10 +305,6 @@ send_ldap_result(
        int             rc;
 #ifdef LDAP_CONNECTIONLESS
        int             cldap;
-#endif
-       extern int      version;
-
-#ifdef LDAP_CONNECTIONLESS
        cldap = ( sb->sb_naddr > 0 );
 #endif