exclude 'type=xxx' from model declaration

This commit is contained in:
Holger Vogt 2022-03-11 23:31:26 +01:00
parent e3b6deaf56
commit b0a54137a9
1 changed files with 2 additions and 2 deletions

View File

@ -1475,9 +1475,9 @@ com_alter_mod(wordlist *wl)
inptoken = gettok(&modelline); /* skip model type */
tfree(inptoken);
while ((inptoken = gettok_node(&modelline)) != NULL) {
/* exclude level, version and mfg */
/* exclude level, version, mfg, and type */
if (ciprefix("version", inptoken) || ciprefix("level", inptoken) ||
ciprefix("mfg", inptoken)) {
ciprefix("mfg", inptoken) || ciprefix("type", inptoken) ) {
tfree(inptoken);
continue;
}