aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Moolenaar <marcel@FreeBSD.org>2003-11-12 17:44:37 +0000
committerMarcel Moolenaar <marcel@FreeBSD.org>2003-11-12 17:44:37 +0000
commitd55a27339259abb2f643406f767cf518e68f1311 (patch)
treeca3002a69d58622b8d4f41d98ea8c4df999cff57
parente5bc4f1b34be3d9aa2adf63e58884cc3ad54ba5a (diff)
Notes
-rw-r--r--lib/libdisk/create_chunk.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/libdisk/create_chunk.c b/lib/libdisk/create_chunk.c
index fb3daecd2dd6..d3625b931332 100644
--- a/lib/libdisk/create_chunk.c
+++ b/lib/libdisk/create_chunk.c
@@ -159,8 +159,12 @@ Fixup_Names(struct disk *d)
max = NDOSPART;
#endif
for (j = 1; j <= max; j++) {
+#ifdef __ia64__
sprintf(c2->oname, "%s%c%d", c1->name,
(c1->type == whole) ? 'p' : 's', j);
+#else
+ sprintf(c2->oname, "%ss%d", c1->name, j);
+#endif
for (c3 = c1->part; c3; c3 = c3->next)
if (c3 != c2 && !strcmp(c3->name, c2->oname))
goto match;