remove redundant OS/2 codes (from komh)
os2_init() does it.
This commit is contained in:
		
							
								
								
									
										6
									
								
								main.c
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								main.c
									
									
									
									
									
								
							| @@ -34,7 +34,7 @@ | |||||||
| #include <locale.h> | #include <locale.h> | ||||||
| #endif | #endif | ||||||
|  |  | ||||||
| __RCSID("$MirOS: src/bin/mksh/main.c,v 1.342 2017/04/28 11:13:47 tg Exp $"); | __RCSID("$MirOS: src/bin/mksh/main.c,v 1.343 2017/10/10 21:19:43 tg Exp $"); | ||||||
|  |  | ||||||
| extern char **environ; | extern char **environ; | ||||||
|  |  | ||||||
| @@ -242,10 +242,6 @@ main_init(int argc, const char *argv[], Source **sp, struct block **lp) | |||||||
| 	set_ifs(TC_IFSWS); | 	set_ifs(TC_IFSWS); | ||||||
|  |  | ||||||
| #ifdef __OS2__ | #ifdef __OS2__ | ||||||
| 	for (i = 0; i < 3; ++i) |  | ||||||
| 		if (!isatty(i)) |  | ||||||
| 			setmode(i, O_BINARY); |  | ||||||
|  |  | ||||||
| 	os2_init(&argc, &argv); | 	os2_init(&argc, &argv); | ||||||
| #endif | #endif | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user