crm_devel("Copying ccm lost node %d", lpc);
copy_ccm_oc_data(const oc_ev_membership_t *oc_in) {	int lpc = 0;	int size = 0;	int offset = 0;	int num_nodes = 0;	oc_ev_membership_t *oc_copy = NULL;	if(oc_in->m_n_member > 0	   && num_nodes < oc_in->m_n_member + oc_in->m_memb_idx) {		num_nodes = oc_in->m_n_member + oc_in->m_memb_idx;		crm_devel("Updated ccm nodes to %d - 1", num_nodes);	}	if(oc_in->m_n_in > 0	   && num_nodes < oc_in->m_n_in + oc_in->m_in_idx) {		num_nodes = oc_in->m_n_in + oc_in->m_in_idx;		crm_devel("Updated ccm nodes to %d - 2", num_nodes);	}	if(oc_in->m_n_out > 0	   && num_nodes < oc_in->m_n_out + oc_in->m_out_idx) {		num_nodes = oc_in->m_n_out + oc_in->m_out_idx;		crm_devel("Updated ccm nodes to %d - 3", num_nodes);	}	/* why 2*??	 * ccm code does it like this so i guess its right...	 */	size = sizeof(oc_ev_membership_t)		+ sizeof(int)		+ 2*num_nodes*sizeof(oc_node_t);	crm_devel("Copying %d ccm nodes", num_nodes);		crm_malloc(oc_copy, size);	oc_copy->m_instance = oc_in->m_instance;	oc_copy->m_n_member = oc_in->m_n_member;	oc_copy->m_memb_idx = oc_in->m_memb_idx;	oc_copy->m_n_out    = oc_in->m_n_out;	oc_copy->m_out_idx  = oc_in->m_out_idx;	oc_copy->m_n_in     = oc_in->m_n_in;	oc_copy->m_in_idx   = oc_in->m_in_idx;	crm_debug("instance=%d, nodes=%d (idx=%d), new=%d (idx=%d), lost=%d (idx=%d)",		  oc_in->m_instance,		  oc_in->m_n_member,		  oc_in->m_memb_idx,		  oc_in->m_n_in,		  oc_in->m_in_idx,		  oc_in->m_n_out,		  oc_in->m_out_idx);	offset = oc_in->m_memb_idx;	for(lpc = 0; lpc < oc_in->m_n_member; lpc++) {		crm_devel("Copying ccm member node %d", lpc);		oc_node_t a_node      = oc_in->m_array[lpc+offset];		oc_node_t *a_node_copy = &(oc_copy->m_array[lpc+offset]);		copy_ccm_node(a_node, a_node_copy);			}	offset = oc_in->m_in_idx;	for(lpc = 0; lpc < oc_in->m_n_in; lpc++) {		crm_devel("Copying ccm new node %d", lpc);		oc_node_t a_node      = oc_in->m_array[lpc+offset];		oc_node_t *a_node_copy = &(oc_copy->m_array[lpc+offset]);		copy_ccm_node(a_node, a_node_copy);			}	offset = oc_in->m_out_idx;	for(lpc = 0; lpc < oc_in->m_n_out; lpc++) {		crm_devel("Copying ccm lost node %d", lpc);		oc_node_t a_node      = oc_in->m_array[lpc+offset];		oc_node_t *a_node_copy = &(oc_copy->m_array[lpc+offset]);		copy_ccm_node(a_node, a_node_copy);	}		return oc_copy;}