raft: specify the type of function arg

The function arg election is an int type; make it explicit.