X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=servers%2Fslurpd%2Fldap_op.c;h=283f5249571d34c4446807a71d5e5ba51a2e7e61;hb=8687dace5b3a5a8d2b44c087c8f0091ad0cbc298;hp=16d719867a43d5f4c739219789b719b842ea224b;hpb=08d4af049f14c5099efacfce95eea34778faebff;p=openldap diff --git a/servers/slurpd/ldap_op.c b/servers/slurpd/ldap_op.c index 16d719867a..283f524957 100644 --- a/servers/slurpd/ldap_op.c +++ b/servers/slurpd/ldap_op.c @@ -61,7 +61,9 @@ static LDAPMod *alloc_ldapmod LDAP_P(( void )); static void free_ldapmod LDAP_P(( LDAPMod * )); static void free_ldmarr LDAP_P(( LDAPMod ** )); static int getmodtype LDAP_P(( char * )); +#ifdef SLAPD_UNUSED static void dump_ldm_array LDAP_P(( LDAPMod ** )); +#endif static int do_bind LDAP_P(( Ri *, int * )); static int do_unbind LDAP_P(( Ri * )); @@ -321,7 +323,7 @@ op_ldap_modify( continue; } - assert( ldm ); + assert( ldm != NULL ); /* * We should have an attribute: value pair here. @@ -505,7 +507,7 @@ op_ldap_modrdn( } #endif /* LDAP_DEBUG */ - assert( newrdn ); + assert( newrdn != NULL ); /* Do the modrdn */ rc = ldap_rename2_s( ri->ri_ldp, re->re_dn, newrdn, newsup, drdnflag ); @@ -711,7 +713,7 @@ retry: } { /* set version 3 */ - int err, version = 3; + int err, version = LDAP_VERSION3; err = ldap_set_option(ri->ri_ldp, LDAP_OPT_PROTOCOL_VERSION, &version); @@ -877,6 +879,7 @@ retry: /* * For debugging. Print the contents of an ldmarr array. */ +#ifdef SLAPD_UNUSED static void dump_ldm_array( LDAPMod **ldmarr @@ -910,3 +913,4 @@ dump_ldm_array( } } } +#endif