summaryrefslogtreecommitdiff
path: root/comm/Channel.h
diff options
context:
space:
mode:
Diffstat (limited to 'comm/Channel.h')
-rw-r--r--comm/Channel.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/comm/Channel.h b/comm/Channel.h
index e59d3d5..24ea7e3 100644
--- a/comm/Channel.h
+++ b/comm/Channel.h
@@ -99,8 +99,8 @@ virtual void HandleRead ();
virtual bool HandleSelect ();
inline int FilDes () const { return Fd; }
-inline int Read (byte* b, int n) { return read (Fd, (char*) b, n); }
-inline int Write (byte* b, int n) { return write (Fd, (const char*) b, n); }
+inline int Read (byte* b, int n) { return read (FilDes (), (char*) b, n); }
+inline int Write (byte* b, int n) { return write (FilDes (), (const char*) b, n); }
inline operator int () { return Fd; }
inline char* StrRepr (char* s = StrReprBuf) { return Fd.StrRepr (s); }