Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libgloss/riscv/sys_isatty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgloss/riscv/sys_isatty.c b/libgloss/riscv/sys_isatty.c
index 0dc3db169..8857f4828 100644
--- a/libgloss/riscv/sys_isatty.c
+++ b/libgloss/riscv/sys_isatty.c
@@ -13,5 +13,5 @@ _isatty(int file)
{
struct stat s;
int ret = _fstat (file, &s);
- return ret == -1 ? -1 : !!(s.st_mode & S_IFCHR);
+ return ret == -1 ? 0 : !!(s.st_mode & S_IFCHR);
}