VolState: return an enum volumestate, not a (non-existent) enum volstate.

Strangely, neither gcc nor EGCS noticed this bug.

Eagle-eyed by: arno@heho.snv.jussieu.fr (Arno J. Klaassen)
This commit is contained in:
Greg Lehey 1999-03-19 07:17:05 +00:00
parent 1f3cd6add9
commit def602f62b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=44886

View File

@ -162,7 +162,7 @@ VolState(char *text)
int i;
for (i = 0; i < STATECOUNT(vol); i++)
if (strcmp(text, volstatetext[i]) == 0) /* found it */
return (enum volstate) i;
return (enum volumestate) i;
return -1;
}