const char *timer_desc = NULL; if(timer == election_trigger) { timer_desc = "Election Trigger";  } else if(timer == election_timeout) { timer_desc = "Election Timeout";  } else if(timer == wait_timer) { timer_desc = "Stall Timeout";  } else { timer_desc = "Timer"; }
const char *timer_desc = get_timer_desc(timer);
crm_timer_stop(fsa_timer_t *timer){	const char *timer_desc = NULL;	if(timer == election_trigger) {		timer_desc = "Election Trigger"; 	} else if(timer == election_timeout) {		timer_desc = "Election Timeout";		 	} else if(timer == wait_timer) {		timer_desc = "Stall Timeout";			} else {		timer_desc = "Timer";	}	if(timer == NULL) {		crm_err("Attempted to stop NULL timer");		return FALSE;			} else if(timer->source_id != (guint)-1		  && timer->source_id != (guint)-2) {		crm_debug("Stopping %s (%s:%dms), src=%d",			  timer_desc, fsa_input2string(timer->fsa_input),			  timer->period_ms, timer->source_id);		Gmain_timeout_remove(timer->source_id);		timer->source_id = -2;			} else {		crm_debug_2("%s (%s:%dms) already stopped",			  timer_desc, fsa_input2string(timer->fsa_input),			  timer->period_ms);		timer->source_id = -2;		return FALSE;	}	return TRUE;}