Replace some indent tabs to spaces
Strip unused variables
Remove unnecessary check. (nwrite <= 0)
Cherry-picked from cf00bed

Conflicts:
	src/tosixel.c