if (s == NULL) continue;
getdisktype(lp, banner)	struct disklabel *lp;	char *banner;{	int i;	char *s;	if (lp->d_type > DKMAXTYPES || lp->d_type == 0) {		puts(banner);		puts("Possible values are:");		for (i = 1; i < DKMAXTYPES; i++) {			printf("\"%s\"", dktypenames[i]);			if (i < DKMAXTYPES - 1)				fputs(", ", stdout);		}		putchar('\n');		for (;;) {			s = getstring(lp, "Disk type",			    "What kind of disk is this?  Usually SCSI, ST506, or floppy (use ST506 for IDE).",			    "SCSI");			for (i = 1; i < DKMAXTYPES; i++)				if (strcasecmp(s, dktypenames[i]) == 0) {					lp->d_type = i;					putchar('\n');					return;				}			printf("\"%s\" is not a valid disk type.\n", s);			fputs("Valid types are: ", stdout);			for (i = 1; i < DKMAXTYPES; i++) {				printf("\"%s\"", dktypenames[i]);				if (i < DKMAXTYPES - 1)					fputs(", ", stdout);			}			putchar('\n');		}	}}