only test on errno when an error occurred (especially on mips); fix some warnings
1 file changed