tresize return value is not used
Signed-off-by: Roberto E. Vargas Caballero <k0ga@shike2.com>
This commit is contained in:
		
				
					committed by
					
						 Roberto E. Vargas Caballero
						Roberto E. Vargas Caballero
					
				
			
			
				
	
			
			
			
						parent
						
							821a6e00a5
						
					
				
				
					commit
					20c4f12254
				
			
							
								
								
									
										13
									
								
								st.c
									
									
									
									
									
								
							
							
						
						
									
										13
									
								
								st.c
									
									
									
									
									
								
							| @ -382,7 +382,7 @@ static void tnewline(int); | |||||||
| static void tputtab(int); | static void tputtab(int); | ||||||
| static void tputc(char *, int); | static void tputc(char *, int); | ||||||
| static void treset(void); | static void treset(void); | ||||||
| static int tresize(int, int); | static void tresize(int, int); | ||||||
| static void tscrollup(int, int); | static void tscrollup(int, int); | ||||||
| static void tscrolldown(int, int); | static void tscrolldown(int, int); | ||||||
| static void tsetattr(int *, int); | static void tsetattr(int *, int); | ||||||
| @ -2656,7 +2656,7 @@ tputc(char *c, int len) { | |||||||
| 	} | 	} | ||||||
| } | } | ||||||
|  |  | ||||||
| int | void | ||||||
| tresize(int col, int row) { | tresize(int col, int row) { | ||||||
| 	int i; | 	int i; | ||||||
| 	int minrow = MIN(row, term.row); | 	int minrow = MIN(row, term.row); | ||||||
| @ -2666,8 +2666,11 @@ tresize(int col, int row) { | |||||||
| 	Line *orig; | 	Line *orig; | ||||||
| 	TCursor c; | 	TCursor c; | ||||||
|  |  | ||||||
| 	if(col < 1 || row < 1) | 	if(col < 1 || row < 1) { | ||||||
| 		return 0; | 		fprintf(stderr, | ||||||
|  | 		        "tresize: error resizing to %dx%d\n", col, row); | ||||||
|  | 		return; | ||||||
|  | 	} | ||||||
|  |  | ||||||
| 	/* free unneeded rows */ | 	/* free unneeded rows */ | ||||||
| 	i = 0; | 	i = 0; | ||||||
| @ -2738,8 +2741,6 @@ tresize(int col, int row) { | |||||||
| 		tcursor(CURSOR_LOAD); | 		tcursor(CURSOR_LOAD); | ||||||
| 	} while(orig != term.line); | 	} while(orig != term.line); | ||||||
| 	term.c = c; | 	term.c = c; | ||||||
|  |  | ||||||
| 	return (slide > 0); |  | ||||||
| } | } | ||||||
|  |  | ||||||
| void | void | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user