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:
authorKen Brown <kbrown@cornell.edu>2019-07-19 22:39:35 +0300
committerKen Brown <kbrown@cornell.edu>2019-07-22 15:15:16 +0300
commit4beb9da11875b6597629330a344ac679f990ca24 (patch)
treef7e7d15129578fbcbb0a9b4f39d201870b140a00 /winsup/cygwin/fhandler_raw.cc
parent6b7723a83032bd355d3c529d957fe209cb35b4d9 (diff)
Cygwin: fhandler_*: remove isdevice() and is_auto_device()
isdevice() is used only in the definition of is_auto_device(). And the latter is used only once, in a context where isdevice() always returns true.
Diffstat (limited to 'winsup/cygwin/fhandler_raw.cc')
-rw-r--r--winsup/cygwin/fhandler_raw.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/fhandler_raw.cc b/winsup/cygwin/fhandler_raw.cc
index bd47b6010..7c341d895 100644
--- a/winsup/cygwin/fhandler_raw.cc
+++ b/winsup/cygwin/fhandler_raw.cc
@@ -38,7 +38,7 @@ fhandler_dev_raw::fstat (struct stat *buf)
debug_printf ("here");
fhandler_base::fstat (buf);
- if (is_auto_device ())
+ if (!dev ().isfs ())
{
if (get_major () == DEV_TAPE_MAJOR)
buf->st_mode = S_IFCHR | STD_RBITS | STD_WBITS | S_IWGRP | S_IWOTH;