 } 
); 
update_node_state(crm_data_t *target, crm_data_t *update){	const char *source	= NULL;	gboolean any_updates    = FALSE;	gboolean clear_stonith  = FALSE;	gboolean clear_shutdown = FALSE;	const char *local_prop_value = NULL;	const char *local_prop_name = NULL;#ifdef USE_LIBXML	xmlAttrPtr prop_iter    = NULL;	prop_iter = update->properties;	while(prop_iter != NULL) {		local_prop_name = prop_iter->name;		prop_iter = prop_iter->next;#else	int lpc = 0;	for(; lpc < update->nfields; lpc++) {		if(update->types[lpc] != FT_STRING) {			continue;		}		local_prop_name = update->names[lpc];#endif				local_prop_value =			crm_element_value(update, local_prop_name);		if(local_prop_name == NULL) {			/*  error */					} else if(strcmp(local_prop_name, XML_ATTR_ID) == 0) {					} else if(strcmp(local_prop_name, XML_ATTR_TSTAMP) == 0) {		} else if(strcmp(local_prop_name, XML_CIB_ATTR_CLEAR_SHUTDOWN) == 0) {			clear_shutdown = TRUE;					} else if(strcmp(local_prop_name, XML_CIB_ATTR_CLEAR_STONITH) == 0) {			clear_stonith = TRUE;			clear_shutdown = TRUE;								} else if(strcmp(local_prop_name, XML_CIB_ATTR_SOURCE) == 0) {			source = local_prop_value;					} else {			any_updates = TRUE;			set_xml_property_copy(				target, local_prop_name, local_prop_value);		}			  	}		xml_remove_prop(target, XML_CIB_ATTR_CLEAR_SHUTDOWN);	if(clear_shutdown) {		/*  unset XML_CIB_ATTR_SHUTDOWN  */		crm_verbose("Clearing %s", XML_CIB_ATTR_SHUTDOWN);		xml_remove_prop(target, XML_CIB_ATTR_SHUTDOWN);		any_updates = TRUE;	}	xml_remove_prop(target, XML_CIB_ATTR_CLEAR_STONITH);	if(clear_stonith) {		/*  unset XML_CIB_ATTR_STONITH */		crm_verbose("Clearing %s", XML_CIB_ATTR_STONITH);		xml_remove_prop(target, XML_CIB_ATTR_STONITH);		any_updates = TRUE;	}			if(any_updates) {		set_node_tstamp(target);		set_xml_property_copy(target, XML_CIB_ATTR_SOURCE, source);	}	}
8182	/local/tlutelli/issta_data/temp/c/2005_temp/2005/8182/6bd35d14b6971a662745e340b30239ed283cb20b/primatives.c/buggy/crm/cib/primatives.c