#include <dump_entry.h>
#include <transform.h>
-MODULE_ID("$Id: tset.c,v 1.95 2015/04/04 15:09:24 tom Exp $")
+MODULE_ID("$Id: tset.c,v 1.97 2015/11/08 01:45:47 tom Exp $")
/*
* SCO defines TIOCGSIZE and the corresponding struct. Other systems (SunOS,
tbaudrate(char *rate)
{
const SPEEDS *sp = 0;
- int found = FALSE;
size_t n;
/* The baudrate number can be preceded by a 'B', which is ignored. */
for (n = 0; n < SIZEOF(speeds); ++n) {
if (!CaselessCmp(rate, speeds[n].string)) {
- found = TRUE;
sp = speeds + n;
break;
}
reset_mode();
}
- (void) get_termcap_entry(*argv);
+ ttype = get_termcap_entry(*argv);
if (!noset) {
#if HAVE_SIZECHANGE
}
}
- /* Get the terminal name from the entry. */
- ttype = _nc_first_name(cur_term->type.term_names);
-
if (noset)
(void) printf("%s\n", ttype);
else {