if(a_id == -1 && b_id == -1) { /* do nothing */ } else if(a_id >= 0 && a_id < b_id) { crm_debug_2("%s (%d) < %s (%d)", ID(a), a_id, ID(b), b_id); return -1; } else if(b_id >= 0 && a_id > b_id) { crm_debug_2("%s (%d) > %s (%d)", ID(a), a_id, ID(b), b_id); return 1; 
if(a_call_id == -1 && b_call_id == -1) { /* both are pending ops so it doesnt matter since *   stops are never pending */ sort_return(0);  } else if(a_call_id >= 0 && a_call_id < b_call_id) { crm_debug_2("%s (%d) < %s (%d) : call id", ID(a), a_call_id, ID(b), b_call_id); sort_return(-1);  } else if(b_call_id >= 0 && a_call_id > b_call_id) { crm_debug_2("%s (%d) > %s (%d) : call id", ID(a), a_call_id, ID(b), b_call_id); sort_return(1); 
sort_op_by_callid(gconstpointer a, gconstpointer b){	char *uuid = NULL; 	const char *a_task_id = cl_get_string(a, XML_LRM_ATTR_CALLID); 	const char *b_task_id = cl_get_string(b, XML_LRM_ATTR_CALLID);	const char *a_key = cl_get_string(a, XML_ATTR_TRANSITION_KEY); 	const char *b_key = cl_get_string(b, XML_ATTR_TRANSITION_KEY);	int a_id = -1;	int b_id = -1;	CRM_DEV_ASSERT(a_task_id != NULL && b_task_id != NULL);		a_id = atoi(a_task_id);	b_id = atoi(b_task_id);	if(a_id == -1 && b_id == -1) {		/* do nothing */	} else if(a_id >= 0 && a_id < b_id) {		crm_debug_2("%s (%d) < %s (%d)", ID(a), a_id, ID(b), b_id);		return -1;	} else if(b_id >= 0 && a_id > b_id) {		crm_debug_2("%s (%d) > %s (%d)", ID(a), a_id, ID(b), b_id);		return 1;	}	/* now process pending ops */		CRM_DEV_ASSERT(a_key != NULL && b_key != NULL);	CRM_DEV_ASSERT(decode_transition_key(a_key, &uuid, &a_id)); crm_free(uuid);	CRM_DEV_ASSERT(decode_transition_key(b_key, &uuid, &b_id)); crm_free(uuid);		/* test for -1 so that shutdown ops appear last	 * by definition nothing else should get run on that node	 */	if(a_id == b_id) {	} else if(a_id < b_id || b_id == -1) {		crm_debug_2("%s (%d) < %s (%d)", ID(a), a_id, ID(b), b_id);		return -1;	} else if(a_id > b_id || a_id == -1) {		crm_debug_2("%s (%d) > %s (%d)", ID(a), a_id, ID(b), b_id);		return 1;	}	crm_debug_2("%s == %s", ID(a), ID(b));	return 0;}
8182	/local/tlutelli/issta_data/temp/c/2005_temp/2005/8182/e0b52d46317b20f237c5f59415718fcfccfd86fe/unpack.c/buggy/crm/pengine/unpack.c