aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornoname <noname@inventati.org>2014-04-28 02:03:04 +0400
committerRoberto E. Vargas Caballero <k0ga@shike2.com>2014-08-10 22:16:21 +0200
commit20c4f122543b67c0cdcefd151eb38b3bee599c10 (patch)
treef0137489eb9906f7a4cb7095bb01cc4237141cd4
parent821a6e00a5a9395f40c10c00d19c569bd0f2688e (diff)
downloadst-20c4f122543b67c0cdcefd151eb38b3bee599c10.tar.gz
st-20c4f122543b67c0cdcefd151eb38b3bee599c10.zip
tresize return value is not used
Signed-off-by: Roberto E. Vargas Caballero <k0ga@shike2.com>
-rw-r--r--st.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/st.c b/st.c
index e0aae9d..9eebbe4 100644
--- a/st.c
+++ b/st.c
@@ -382,7 +382,7 @@ static void tnewline(int);
382static void tputtab(int); 382static void tputtab(int);
383static void tputc(char *, int); 383static void tputc(char *, int);
384static void treset(void); 384static void treset(void);
385static int tresize(int, int); 385static void tresize(int, int);
386static void tscrollup(int, int); 386static void tscrollup(int, int);
387static void tscrolldown(int, int); 387static void tscrolldown(int, int);
388static void tsetattr(int *, int); 388static void tsetattr(int *, int);
@@ -2656,7 +2656,7 @@ tputc(char *c, int len) {
2656 } 2656 }
2657} 2657}
2658 2658
2659int 2659void
2660tresize(int col, int row) { 2660tresize(int col, int row) {
2661 int i; 2661 int i;
2662 int minrow = MIN(row, term.row); 2662 int minrow = MIN(row, term.row);
@@ -2666,8 +2666,11 @@ tresize(int col, int row) {
2666 Line *orig; 2666 Line *orig;
2667 TCursor c; 2667 TCursor c;
2668 2668
2669 if(col < 1 || row < 1) 2669 if(col < 1 || row < 1) {
2670 return 0; 2670 fprintf(stderr,
2671 "tresize: error resizing to %dx%d\n", col, row);
2672 return;
2673 }
2671 2674
2672 /* free unneeded rows */ 2675 /* free unneeded rows */
2673 i = 0; 2676 i = 0;
@@ -2738,8 +2741,6 @@ tresize(int col, int row) {
2738 tcursor(CURSOR_LOAD); 2741 tcursor(CURSOR_LOAD);
2739 } while(orig != term.line); 2742 } while(orig != term.line);
2740 term.c = c; 2743 term.c = c;
2741
2742 return (slide > 0);
2743} 2744}
2744 2745
2745void 2746void