startTimer(election_timeout); 
crm_timer_start(election_timeout); 
do_election_vote(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){	gboolean not_voting = FALSE;	HA_Message *vote = NULL;		/* dont vote if we're in one of these states or wanting to shut down */	switch(cur_state) {		case S_RECOVERY:		case S_STOPPING:		case S_RELEASE_DC:		case S_TERMINATE:			crm_warn("Not voting in election, we're in state %s",				 fsa_state2string(cur_state));			not_voting = TRUE;			break;		default: 			if(is_set(fsa_input_register, R_SHUTDOWN)) {				crm_warn("Not voting in election,"					 " we're shutting down");				not_voting = TRUE;			}			break;	}	if(not_voting == FALSE) {		if(is_set(fsa_input_register, R_STARTING)) {			not_voting = TRUE;		}	}		vote = create_request(		CRM_OP_VOTE, NULL, NULL,		CRM_SYSTEM_CRMD, CRM_SYSTEM_CRMD, NULL);		if(action & A_ELECTION_START) {		/* leaving out our version number, no other node out there		 * will think we should win the election...		 * which is what we want if we are the DC and want to shutdown 		 */		ha_msg_mod(vote, XML_ATTR_VERSION, "0");			} else if(not_voting) {		fsa_cib_conn->cmds->set_slave(fsa_cib_conn, cib_scope_local);		if(AM_I_DC) {			register_fsa_input(C_FSA_INTERNAL, I_RELEASE_DC, NULL);		} else {			register_fsa_input(C_FSA_INTERNAL, I_PENDING, NULL);		}	}	send_request(vote, NULL);	startTimer(election_timeout);			return I_NULL;}
8182	/local/tlutelli/issta_data/temp/c/2005_temp/2005/8182/c6a64cb55dab08b8cd7964959010f066aaf3572d/election.c/buggy/crm/crmd/election.c