(sct_typematch): New. Use it instead of typematch() where

appropriate.
(typematch): Prefer exact match to partial match.  Use plain char
instead of s_char.
This commit is contained in:
Markus Armbruster 2004-02-27 19:53:02 +00:00
parent 844b654d44
commit f5e49a830c
5 changed files with 51 additions and 52 deletions

View file

@ -641,7 +641,7 @@ doland(s_char op, int arg, s_char *p, struct sctstr *sect)
sect->sct_dist_y = newy;
break;
case 's':
des = typematch(p, EF_SECTOR);
des = sct_typematch(p);
if (des < 0)
return RET_SYN;
pr("Designation for sector %s changed from %c to %c\n",
@ -650,7 +650,7 @@ doland(s_char op, int arg, s_char *p, struct sctstr *sect)
sect->sct_type = des;
break;
case 'S':
des = typematch(p, EF_SECTOR);
des = sct_typematch(p);
if (des < 0)
return RET_SYN;
pr("New Designation for sector %s changed from %c to %c\n",