if(a_task_id == NULL) { return -1; } if(b_task_id == NULL) { return 1; }
if(a_task_id == NULL) { return 1; } if(b_task_id == NULL) { return -1; }
sort_op_by_callid(gconstpointer a, gconstpointer b){ 	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);	/* if task id is NULL, then its a pending op	 * put pending ops last	 */	int a_id = -1;	int b_id = -1;		if(a_task_id == NULL && b_task_id == NULL) { return 0; }	/* the reverse from normal so that NULLs appear last */	if(a_task_id == NULL) { return -1; }	if(b_task_id == NULL) { return 1; }	a_id = atoi(a_task_id);	b_id = atoi(b_task_id);	if(a_id < b_id) {		return -1;	} else if(a_id > b_id) {		return 1;	}	return 0;}