char *new_value = xmlGetProp(newCib, XML_ATTR_GENERATION); char *old_value = xmlGetProp(oldCib, XML_ATTR_GENERATION); int int_new_value = -1; int int_old_value = -1; if(old_value != NULL) int_old_value = atoi(old_value); if(new_value != NULL) int_new_value = atoi(new_value);  if(int_new_value >= int_old_value) {
if(compare_cib_generation(newCib, oldCib) >= 0) {
check_generation(xmlNodePtr newCib, xmlNodePtr oldCib){	char *new_value = xmlGetProp(newCib, XML_ATTR_GENERATION);	char *old_value = xmlGetProp(oldCib, XML_ATTR_GENERATION);	int int_new_value = -1;	int int_old_value = -1;	if(old_value != NULL) int_old_value = atoi(old_value);	if(new_value != NULL) int_new_value = atoi(new_value);		if(int_new_value >= int_old_value) {		return TRUE;	} else {		crm_err("Generation from update (%d) is older than %d",		       int_new_value, int_old_value);	}		return FALSE;}