Use warnx() if errno is not relevant. close() after errno of
authorkrw <krw@openbsd.org>
Sun, 24 Apr 2022 12:13:37 +0000 (12:13 +0000)
committerkrw <krw@openbsd.org>
Sun, 24 Apr 2022 12:13:37 +0000 (12:13 +0000)
commit45a092d74e3dedf641d58d4f2732a7da23cbebbe
treeecc2f9e2bbf64b8f505a53c166303269fbdecdb7
parent21bc013100529b97a57f0afd646e088ba69b54f0
Use warnx() if errno is not relevant. close() after errno of
interest is checked, not before.

Less confusing error messages.
sbin/fdisk/cmd.c
sbin/fdisk/fdisk.c