Преглед на файлове

Fix compiler warnings introduced by fix for #569

Ludwig Krispenz преди 12 години
родител
ревизия
215741d21c
променени са 3 файла, в които са добавени 3 реда и са изтрити 6 реда
  1. 1 1
      ldap/servers/slapd/entry.c
  2. 0 3
      ldap/servers/slapd/entrywsi.c
  3. 2 2
      ldap/servers/slapd/valueset.c

+ 1 - 1
ldap/servers/slapd/entry.c

@@ -1725,7 +1725,7 @@ entry2str_internal_put_attrlist( const Slapi_Attr *attrlist, int attr_state, int
 						 * never be seen by any client. It will never be moved to the 
 						 * present values and is only used to preserve the AD-csn
 						 */
-						valueset_add_string (&a->a_deleted_values, "", CSN_TYPE_VALUE_DELETED, a->a_deletioncsn);
+						valueset_add_string ((Slapi_ValueSet *)&a->a_deleted_values, "", CSN_TYPE_VALUE_DELETED, a->a_deletioncsn);
 					}				
 
 					entry2str_internal_put_valueset(a->a_type, a->a_deletioncsn, CSN_TYPE_ATTRIBUTE_DELETED, attr_state, &a->a_deleted_values, VALUE_DELETED, ecur, typebuf, typebuf_len, entry2str_ctrl);

+ 0 - 3
ldap/servers/slapd/entrywsi.c

@@ -46,8 +46,6 @@
 #include "slap.h"
 #include "slapi-plugin.h"
 
-static void resolve_attribute_state(Slapi_Entry *e, Slapi_Attr *a, int attribute_state, int delete_priority);
-
 static int
 entry_present_value_to_deleted_value(Slapi_Attr *a, Slapi_Value *v)
 {
@@ -776,7 +774,6 @@ entry_delete_present_values_wsi_multi_valued(Slapi_Entry *e, const char *type, s
 {
 	int retVal= LDAP_SUCCESS;
 	Slapi_Attr *a= NULL;
-	int attr_state= entry_attr_find_wsi(e, type, &a);
 		/* The attribute is on the present list, or the deleted list and we're doing URP */
 		if ( vals == NULL || vals[0] == NULL )
 		{

+ 2 - 2
ldap/servers/slapd/valueset.c

@@ -1456,7 +1456,7 @@ valueset_update_csn_for_valuearray_ext(Slapi_ValueSet *vs, const Slapi_Attr *a,
 				{
 					value_update_csn(vs->va[index],t,csn);
 					if (csnref_updated)
-						valuestoupdate[i]->v_csnset = value_get_csnset(vs->va[index]);
+						valuestoupdate[i]->v_csnset = (CSNSet *)value_get_csnset(vs->va[index]);
 					valuearrayfast_add_value_passin(&vaf_valuesupdated,valuestoupdate[i]);
 					valuestoupdate[i] = NULL;
 				}
@@ -1473,7 +1473,7 @@ valueset_update_csn_for_valuearray_ext(Slapi_ValueSet *vs, const Slapi_Attr *a,
 				{
 					value_update_csn(vs->va[index],t,csn);
 					if (csnref_updated)
-						valuestoupdate[i]->v_csnset = value_get_csnset(vs->va[index]);
+						valuestoupdate[i]->v_csnset = (CSNSet *)value_get_csnset(vs->va[index]);
 					valuearrayfast_add_value_passin(&vaf_valuesupdated,valuestoupdate[i]);
 					valuestoupdate[i]= NULL;
 				}