const char *join_id = ha_msg_value(input->msg, F_CRM_JOIN_ID);
do_cl_join_result(long long action,	    enum crmd_fsa_cause cause,	    enum crmd_fsa_state cur_state,	    enum crmd_fsa_input current_input,	    fsa_data_t *msg_data){	crm_data_t *tmp1      = NULL;	gboolean   was_nack   = TRUE;	ha_msg_input_t *input = fsa_typed_data(fsa_dt_ha_msg);	const char *op           = cl_get_string(input->msg,F_CRM_TASK);	const char *ack_nack     = cl_get_string(input->msg,CRM_OP_JOIN_ACKNAK);	const char *welcome_from = cl_get_string(input->msg,F_CRM_HOST_FROM);	if(safe_str_neq(op, CRM_OP_JOIN_ACKNAK)) {		crm_debug("Ignoring op=%s message", op);		return I_NULL;	}		/* calculate if it was an ack or a nack */	if(crm_is_true(ack_nack)) {		was_nack = FALSE;	}		if(was_nack) {		crm_err("Join with %s failed.  NACK'd", welcome_from);		register_fsa_error(C_FSA_INTERNAL, I_ERROR, NULL);		return I_NULL;	}	if(AM_I_DC == FALSE && safe_str_eq(welcome_from, fsa_our_uname)) {		crm_warn("Discarding our own welcome - we're no longer the DC");		return I_NULL;			} else if(fsa_our_dc == NULL) {		crm_info("Set DC to %s", welcome_from);		fsa_our_dc = crm_strdup(welcome_from);	} 		/* send our status section to the DC */	crm_debug("c3) confirming join: %s",		  cl_get_string(input->msg, F_CRM_TASK));	crm_debug("Discovering local LRM status");	tmp1 = do_lrm_query(TRUE);	if(tmp1 != NULL) {#if 0		if(AM_I_DC) {			process_join_ack_msg(fsa_our_uname, tmp1);		} else {			HA_Message *reply = create_request(				CRM_OP_JOIN_CONFIRM, tmp1, fsa_our_dc,				CRM_SYSTEM_DC, CRM_SYSTEM_CRMD, NULL);			crm_debug("Sending local LRM status");			send_msg_via_ha(fsa_cluster_conn, reply);			register_fsa_input(cause, I_NOT_DC, NULL);		}#else		HA_Message *reply = create_request(			CRM_OP_JOIN_CONFIRM, tmp1, fsa_our_dc,			CRM_SYSTEM_DC, CRM_SYSTEM_CRMD, NULL);				crm_debug("Sending local LRM status");		send_msg_via_ha(fsa_cluster_conn, reply);		if(AM_I_DC == FALSE) {			register_fsa_input(cause, I_NOT_DC, NULL);		}#endif		free_xml(tmp1);			} else {		crm_err("Could send our LRM state to the DC");		register_fsa_error(C_FSA_INTERNAL, I_FAIL, NULL);	}	return I_NULL;}