]> git.sur5r.net Git - openldap/commitdiff
minor cleanup
authorPierangelo Masarati <ando@openldap.org>
Sat, 17 Nov 2001 14:24:27 +0000 (14:24 +0000)
committerPierangelo Masarati <ando@openldap.org>
Sat, 17 Nov 2001 14:24:27 +0000 (14:24 +0000)
servers/slapd/back-ldap/group.c
servers/slapd/back-ldap/modify.c
servers/slapd/back-ldap/unbind.c

index 2080f64c15b937aa975b199b23b323f0f17ae9f3..8d2df9814ea86b88a5945cd5bf2563bc36dd4285 100644 (file)
@@ -39,7 +39,7 @@ ldap_back_group(
 
        LDAPMessage     *result;
        char *gattr[2];
-       char *filter;
+       char *filter = NULL;
        LDAP *ld;
        char *mop_ndn, *mgr_ndn;
 
index e1e54052f997be4312f0dc1af7a75ecdca146c96..4d97a940605940582618e99542a9b651c25f8b34 100644 (file)
@@ -57,7 +57,7 @@ ldap_back_modify(
 {
        struct ldapinfo *li = (struct ldapinfo *) be->be_private;
        struct ldapconn *lc;
-       LDAPMod **modv;
+       LDAPMod **modv = NULL;
        LDAPMod *mods;
        Modifications *ml;
        int i;
index eb8db9608b4ed3fb5ea7a3a3ae746dd069dcc848..80b3981867da1a88903552decd632f19c5eaa7f5 100644 (file)
@@ -56,11 +56,11 @@ ldap_back_conn_destroy(
 
 #ifdef NEW_LOGGING
        LDAP_LOG(( "backend", LDAP_LEVEL_INFO,
-                       "ldap_back_conn_destroy: fetching conn %d\n",
+                       "ldap_back_conn_destroy: fetching conn %ld\n",
                        conn->c_connid ));
 #else /* !NEW_LOGGING */
        Debug( LDAP_DEBUG_TRACE,
-               "=>ldap_back_conn_destroy: fetching conn %d\n",
+               "=>ldap_back_conn_destroy: fetching conn %ld\n",
                conn->c_connid, 0, 0 );
 #endif /* !NEW_LOGGING */
 
@@ -72,7 +72,7 @@ ldap_back_conn_destroy(
 
        if (lc) {
                Debug( LDAP_DEBUG_TRACE,
-                       "=>ldap_back_conn_destroy: destroying conn %d\n",
+                       "=>ldap_back_conn_destroy: destroying conn %ld\n",
                        lc->conn->c_connid, 0, 0 );
 
 #ifdef ENABLE_REWRITE