X-Git-Url: http://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=progs%2Ftset.c;h=f66a1670b6e7cde1327a420df2c94e63fd93c04d;hp=9a05b3d06d0a7d1f1ea86b244983dbff6db03406;hb=cea2b8032daa63b0f131fd5793de28b2abdf5471;hpb=0819b56c3096ed77dd36312b0c4e8f37e7d46c88 diff --git a/progs/tset.c b/progs/tset.c index 9a05b3d0..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.96 2015/04/12 15:36:06 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, @@ -1293,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 @@ -1327,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 {