1
0
mirror of https://github.com/openbsd/src.git synced 2026-05-01 17:46:35 +00:00

few more places to use DL_PARTNUM2NAME / DL_PARTNAME2NUM

This commit is contained in:
deraadt
2025-10-05 14:57:09 +00:00
parent d710b6af2d
commit c18fbae631
2 changed files with 4 additions and 4 deletions

View File

@@ -1,4 +1,4 @@
/* $OpenBSD: autoconf.c,v 1.56 2024/05/14 01:42:07 guenther Exp $ */
/* $OpenBSD: autoconf.c,v 1.57 2025/10/05 14:57:09 deraadt Exp $ */
/* $NetBSD: autoconf.c,v 1.1 2003/04/26 18:39:26 fvdl Exp $ */
/*-
@@ -185,7 +185,7 @@ diskconf(void)
unit = B_UNIT(bootdev);
part = B_PARTITION(bootdev);
snprintf(buf, sizeof buf, "%s%d%c", findblkname(majdev),
unit, part + 'a');
unit, DL_PARTNUM2NAME(part));
bootdv = parsedisk(buf, strlen(buf), part, &tmpdev);
}

View File

@@ -1,4 +1,4 @@
/* $OpenBSD: autoconf.c,v 1.109 2023/01/30 10:49:04 jsg Exp $ */
/* $OpenBSD: autoconf.c,v 1.110 2025/10/05 14:57:09 deraadt Exp $ */
/* $NetBSD: autoconf.c,v 1.20 1996/05/03 19:41:56 christos Exp $ */
/*-
@@ -212,7 +212,7 @@ diskconf(void)
unit = B_UNIT(bootdev);
part = B_PARTITION(bootdev);
snprintf(buf, sizeof buf, "%s%d%c", findblkname(majdev),
unit, part + 'a');
unit, DL_PARTNUM2NAME(part));
bootdv = parsedisk(buf, strlen(buf), part, &tmpdev);
}