Borland C++ found these

This commit is contained in:
tg
2007-07-01 21:10:29 +00:00
parent 320b95ea4f
commit 2e42fa62b6
6 changed files with 19 additions and 26 deletions

3
main.c
View File

@ -13,7 +13,7 @@
#include <locale.h>
#endif
__RCSID("$MirOS: src/bin/mksh/main.c,v 1.81 2007/07/01 19:04:53 tg Exp $");
__RCSID("$MirOS: src/bin/mksh/main.c,v 1.82 2007/07/01 21:10:29 tg Exp $");
extern char **environ;
@ -1024,7 +1024,6 @@ check_fd(const char *name, int mode, const char **emsgp)
int fd, fl;
if (ksh_isdigit(name[0]) && !name[1]) {
fd = name[0] - '0';
if ((fl = fcntl(fd = name[0] - '0', F_GETFL, 0)) < 0) {
if (emsgp)
*emsgp = "bad file descriptor";