aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/fhandler/proc.cc
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/fhandler/proc.cc')
-rw-r--r--winsup/cygwin/fhandler/proc.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/winsup/cygwin/fhandler/proc.cc b/winsup/cygwin/fhandler/proc.cc
index a508d4b..7629b54 100644
--- a/winsup/cygwin/fhandler/proc.cc
+++ b/winsup/cygwin/fhandler/proc.cc
@@ -185,7 +185,7 @@ fhandler_proc::exists ()
PROC_LINK_COUNT);
if (entry)
{
- fileid = entry - proc_tab;
+ fileid () = entry - proc_tab;
return entry->type;
}
return virt_none;
@@ -377,7 +377,7 @@ fhandler_proc::open (int flags, mode_t mode)
goto out;
}
- fileid = proc_file_no;
+ fileid () = proc_file_no;
if (!fill_filebuf ())
{
res = 0;
@@ -401,9 +401,9 @@ out:
bool
fhandler_proc::fill_filebuf ()
{
- if (fileid < PROC_LINK_COUNT && proc_tab[fileid].format_func)
+ if (fileid () < PROC_LINK_COUNT && proc_tab[fileid ()].format_func)
{
- filesize = proc_tab[fileid].format_func (NULL, filebuf);
+ filesize = proc_tab[fileid ()].format_func (NULL, filebuf);
if (filesize > 0)
return true;
}