rem: otnchktc()
add: otnchktc(void)
context: otnchktc(){	char *p, *q;#define	TERMNAMESIZE 16	char tcname[TERMNAMESIZE];	/* name of similar terminal */	char tcbuf[TBUFSIZE];	char *holdtbuf = tbuf;	int l;	p = tbuf + strlen(tbuf) - 2;	/* before the last colon */	while (*--p != ':')		if (p < tbuf) {			(void) fprintf(stderr, "tnchktc(): TERM=%s: Bad "			    "termcap entry\n", termname);			return (0);		}	p++;	/* p now points to beginning of last field */	if (p[0] != 't' || p[1] != 'c')		return (1);	(void) strncpy(tcname, p + 3, TERMNAMESIZE);	/* TLH */	q = tcname;	while (*q && *q != ':')		q++;	*q = 0;	if (++hopcount > MAXHOP) {		(void) fprintf(stderr, "tnchktc(): TERM=%s: Infinite tc= "		    "loop\n", termname);		return (0);	}	if (_tgetent(tcbuf, tcname) != 1)		return (0);	/* Tony Hansen */	TLHtcfound++;	(void) strcpy(TLHtcname, tcname);	for (q = tcbuf; *q != ':'; q++)		;	l = p - holdtbuf + strlen(q);	if (l > TBUFSIZE) {		(void) fprintf(stderr, "tnchktc(): TERM=%s: Termcap entry "		    "too long\n", termname);		q[TBUFSIZE - (p - holdtbuf)] = 0;	}	(void) strcpy(p, q + 1);	tbuf = holdtbuf;	return (1);}