summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/mount.cc
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/mount.cc')
-rw-r--r--winsup/cygwin/mount.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/winsup/cygwin/mount.cc b/winsup/cygwin/mount.cc
index 7bb919594..5b29a9cb0 100644
--- a/winsup/cygwin/mount.cc
+++ b/winsup/cygwin/mount.cc
@@ -561,7 +561,7 @@ mount_info::conv_to_win32_path (const char *src_path, char *dst, device& dev,
MALLOC_CHECK;
- dev.devn = FH_FS;
+ dev = FH_FS;
*flags = 0;
debug_printf ("conv_to_win32_path (%s)", src_path);
@@ -619,11 +619,11 @@ mount_info::conv_to_win32_path (const char *src_path, char *dst, device& dev,
if (isproc (src_path))
{
dev = *proc_dev;
- dev.devn = fhandler_proc::get_proc_fhandler (src_path);
- if (dev.devn == FH_BAD)
+ dev = fhandler_proc::get_proc_fhandler (src_path);
+ if (dev == FH_BAD)
return ENOENT;
set_flags (flags, PATH_BINARY);
- if (isprocsys_dev (dev.devn))
+ if (isprocsys_dev (dev))
{
if (src_path[procsys_len])
backslashify (src_path + procsys_len, dst, 0);