X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;ds=sidebyside;f=servers%2Fslurpd%2Fldap_op.c;h=2f5f870f03070fff844ae9c4f36505137b5f9c34;hb=fe3b6d00714d551a4c781ee24627e2586d06459f;hp=16d719867a43d5f4c739219789b719b842ea224b;hpb=08d4af049f14c5099efacfce95eea34778faebff;p=openldap diff --git a/servers/slurpd/ldap_op.c b/servers/slurpd/ldap_op.c index 16d719867a..2f5f870f03 100644 --- a/servers/slurpd/ldap_op.c +++ b/servers/slurpd/ldap_op.c @@ -1,7 +1,7 @@ /* $OpenLDAP$ */ /* This work is part of OpenLDAP Software . * - * Copyright 1998-2005 The OpenLDAP Foundation. + * Copyright 1998-2006 The OpenLDAP Foundation. * Portions Copyright 2003 Mark Benson. * All rights reserved. * @@ -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