char *new_value = xmlGetProp(newCib, "generation"); char *old_value = xmlGetProp(oldCib, "generation");
char *new_value = xmlGetProp(newCib, XML_ATTR_GENERATION); char *old_value = xmlGetProp(oldCib, XML_ATTR_GENERATION);
check_generation(xmlNodePtr newCib, xmlNodePtr oldCib){	char *new_value = xmlGetProp(newCib, "generation");	char *old_value = xmlGetProp(oldCib, "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 {		cl_log(LOG_ERR, "Generation from update (%d) is older than %d",		       int_new_value, int_old_value);	}		return FALSE;}