X-Git-Url: https://ncurses.scripts.mit.edu/?a=blobdiff_plain;f=progs%2Ftset.c;h=f66a1670b6e7cde1327a420df2c94e63fd93c04d;hb=96e4e128aeac7fd4706facb2c23d9a89c8f52c2f;hp=472146dc4f15d5ceab98bfb0d67d94f634a8fa97;hpb=808858ace09b9bf60f7154e33cb6572f49347101;p=ncurses.git diff --git a/progs/tset.c b/progs/tset.c index 472146dc..f66a1670 100644 --- a/progs/tset.c +++ b/progs/tset.c @@ -119,7 +119,7 @@ char *ttyname(int fd); #include #include -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, @@ -377,7 +377,6 @@ static int 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. */ @@ -386,7 +385,6 @@ tbaudrate(char *rate) for (n = 0; n < SIZEOF(speeds); ++n) { if (!CaselessCmp(rate, speeds[n].string)) { - found = TRUE; sp = speeds + n; break; } @@ -1295,7 +1293,7 @@ main(int argc, char **argv) reset_mode(); } - (void) get_termcap_entry(*argv); + ttype = get_termcap_entry(*argv); if (!noset) { #if HAVE_SIZECHANGE @@ -1329,9 +1327,6 @@ main(int argc, char **argv) } } - /* Get the terminal name from the entry. */ - ttype = _nc_first_name(cur_term->type.term_names); - if (noset) (void) printf("%s\n", ttype); else {