Make sure the correct errno is reported by warn* or err* and not
authorguenther <guenther@openbsd.org>
Sun, 20 Jul 2014 02:03:21 +0000 (02:03 +0000)
committerguenther <guenther@openbsd.org>
Sun, 20 Jul 2014 02:03:21 +0000 (02:03 +0000)
commit0976a62eed9efa8a56fe08c0e6111f8914501630
tree083a71329085613117cd1b14fc643ada5c24725e
parent2b1dab59497fb4b02a94841e0ba855d4fa41bb26
Make sure the correct errno is reported by warn* or err* and not
the errno of an intervening cleanup operation like close/unlink/etc.
Also, the format string for warn* and err* shouldn't end with a newline.

Diff from Doug Hogan (doug (at) acyclic.org)
sys/dev/microcode/bwi/build/build.c