Oops, unbreak parsing of the `type' field in getasciilabel(). I had

changed a `goto' to a `continue' in revision 1.52, but it continued
the wrong loop.

Noticed by:	bde
This commit is contained in:
Ian Dowse 2002-06-05 08:11:28 +00:00
parent fc511333b6
commit 09dbd0701c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=97855
2 changed files with 6 additions and 2 deletions

View File

@ -958,8 +958,10 @@ getasciilabel(FILE *f, struct disklabel *lp)
for (; cpp < &dktypenames[DKMAXTYPES]; cpp++)
if (*cpp && streq(*cpp, tp)) {
lp->d_type = cpp - dktypenames;
continue;
break;
}
if (cpp < &dktypenames[DKMAXTYPES])
continue;
v = atoi(tp);
if ((unsigned)v >= DKMAXTYPES)
fprintf(stderr, "line %d:%s %d\n", lineno,

View File

@ -958,8 +958,10 @@ getasciilabel(FILE *f, struct disklabel *lp)
for (; cpp < &dktypenames[DKMAXTYPES]; cpp++)
if (*cpp && streq(*cpp, tp)) {
lp->d_type = cpp - dktypenames;
continue;
break;
}
if (cpp < &dktypenames[DKMAXTYPES])
continue;
v = atoi(tp);
if ((unsigned)v >= DKMAXTYPES)
fprintf(stderr, "line %d:%s %d\n", lineno,