- if (!eq(dev->d_name, "uba") && !eq(dev->d_name, "mba"))
- yyerror("only uba's and mba's should be connected to the nexus");
- if (num != QUES)
- yyerror("can't give specific nexus numbers");
+ switch (machine) {
+ case MACHINE_VAX:
+ if (!eq(dev->d_name, "uba") && !eq(dev->d_name, "mba"))
+ yyerror("only uba's and mba's should be connected to the nexus");
+ if (num != QUES)
+ yyerror("can't give specific nexus numbers");
+ break;
+
+ case MACHINE_SUN:
+ if (!eq(dev->d_name, "mb"))
+ yyerror("only mb's should be connected to the nexus");
+ break;
+ }