Fix some errors/warnings in driver.c.