crm_debug_2("Clearing %s", XML_CIB_ATTR_SHUTDOWN); xml_remove_prop(target, XML_CIB_ATTR_SHUTDOWN); any_updates = TRUE; 
if(crm_element_value(target, XML_CIB_ATTR_SHUTDOWN) != NULL) { crm_debug_2("Clearing %s", XML_CIB_ATTR_SHUTDOWN); xml_remove_prop(target, XML_CIB_ATTR_SHUTDOWN); any_updates = TRUE; } 
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;	xml_prop_iter(		update, local_prop_name, local_prop_value,				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;			crm_xml_add(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_debug_2("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_debug_2("Clearing %s", XML_CIB_ATTR_STONITH);		xml_remove_prop(target, XML_CIB_ATTR_STONITH);		any_updates = TRUE;	}			if(any_updates) {		set_node_tstamp(target);		crm_xml_add(target, XML_CIB_ATTR_SOURCE, source);	}	}
8182	/local/tlutelli/issta_data/temp/c/2005_temp/2005/8182/e540fa617ef84ca1f29e0033e5e5df673395cc5d/primatives.c/buggy/crm/cib/primatives.c