From 007a64b8bc9d925ba03097d75c48fda8198d36c6 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Sun, 26 Jul 1998 17:40:39 +0000 Subject: Don't skip 'b' when suggesting the next partition to add. I thought it would be confusing to suggest 'b' but what happens is that people build a disk without swap. --- sbin/disklabel/editor.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/sbin/disklabel/editor.c b/sbin/disklabel/editor.c index 22569ca2990..4ab0770d981 100644 --- a/sbin/disklabel/editor.c +++ b/sbin/disklabel/editor.c @@ -1,4 +1,4 @@ -/* $OpenBSD: editor.c,v 1.40 1998/07/26 17:36:09 millert Exp $ */ +/* $OpenBSD: editor.c,v 1.41 1998/07/26 17:40:38 millert Exp $ */ /* * Copyright (c) 1997 Todd C. Miller @@ -28,7 +28,7 @@ */ #ifndef lint -static char rcsid[] = "$OpenBSD: editor.c,v 1.40 1998/07/26 17:36:09 millert Exp $"; +static char rcsid[] = "$OpenBSD: editor.c,v 1.41 1998/07/26 17:40:38 millert Exp $"; #endif /* not lint */ #include @@ -378,10 +378,9 @@ editor_add(lp, freep, p) return; } } else { - /* Find first unused partition that is not 'b' or 'c' */ + /* Find first unused partition that is not 'c' */ for (partno = 0; partno < MAXPARTITIONS; partno++, p++) { - if (lp->d_partitions[partno].p_size == 0 && - partno != 1 && partno != 2) + if (lp->d_partitions[partno].p_size == 0 && partno != 2) break; } if (partno < MAXPARTITIONS) { -- cgit v1.2.3