Add hex_octet() so the strtol(..,16) dance is done in just one
authorkrw <krw@openbsd.org>
Sat, 28 Aug 2021 11:55:17 +0000 (11:55 +0000)
committerkrw <krw@openbsd.org>
Sat, 28 Aug 2021 11:55:17 +0000 (11:55 +0000)
commit7696a120b453b8d8d5f5187d11baa48ad1f8e96f
tree3fff6ea7ee0e3a3e441e63e94895cc84446a3761
parentcb8c029a90414d9b60ef48cbc236e6c480276c66
Add hex_octet() so the strtol(..,16) dance is done in just one
place.

Allows single-digit partition id's in '-b' as a side benefit.
sbin/fdisk/cmd.c
sbin/fdisk/fdisk.c
sbin/fdisk/misc.c
sbin/fdisk/misc.h