const char *type     = get_xml_attr( stored_msg, NULL, XML_ATTR_MSGTYPE,   TRUE);
const char *type = NULL; if(stored_msg == NULL || stored_msg->msg == NULL) { crm_err("No message to handle"); return I_NULL; } type = cl_get_string(stored_msg->msg, F_CRM_MSG_TYPE);
handle_message(xmlNodePtr stored_msg){	enum crmd_fsa_input next_input = I_NULL;	const char *type     = get_xml_attr(		stored_msg, NULL, XML_ATTR_MSGTYPE,   TRUE);	if(safe_str_eq(type, XML_ATTR_REQUEST)) {		next_input = handle_request(stored_msg);	} else if(safe_str_eq(type, XML_ATTR_RESPONSE)) {		next_input = handle_response(stored_msg);	} else {		crm_err("Unknown message type: %s", type);	}/* 	crm_verbose("%s: Next input is %s", __FUNCTION__, *//* 		   fsa_input2string(next_input)); */		return next_input;}