Fix compiler warning in doio.c