summaryrefslogtreecommitdiff
path: root/src/stdiodevice.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/stdiodevice.cc')
-rw-r--r--src/stdiodevice.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/stdiodevice.cc b/src/stdiodevice.cc
index 411bdc5..919e92c 100644
--- a/src/stdiodevice.cc
+++ b/src/stdiodevice.cc
@@ -21,20 +21,20 @@ using namespace Binc;
StdIODevice::StdIODevice(int f) : IODevice(f) {}
-StdIODevice::~StdIODevice(void) {}
+StdIODevice::~StdIODevice() {}
-std::string StdIODevice::service(void) const
+std::string StdIODevice::service() const
{
return "client";
}
-bool StdIODevice::canRead(void) const
+bool StdIODevice::canRead() const
{
size_t bytes;
return ioctl(fileno(stdin), FIONREAD, (char *)&bytes) > 0;
}
-bool StdIODevice::waitForWrite(void) const
+bool StdIODevice::waitForWrite() const
{
fd_set writeMask;
FD_ZERO(&writeMask);
@@ -53,7 +53,7 @@ bool StdIODevice::waitForWrite(void) const
return result > 0;
}
-bool StdIODevice::waitForRead(void) const
+bool StdIODevice::waitForRead() const
{
fd_set readMask;
FD_ZERO(&readMask);
@@ -68,7 +68,7 @@ bool StdIODevice::waitForRead(void) const
return result > 0;
}
-IODevice::WriteResult StdIODevice::write(void)
+IODevice::WriteResult StdIODevice::write()
{
for (;;) {
ssize_t wrote = ::write(fileno(stdout),
@@ -89,7 +89,7 @@ IODevice::WriteResult StdIODevice::write(void)
}
}
-bool StdIODevice::fillInputBuffer(void)
+bool StdIODevice::fillInputBuffer()
{
if (!waitForRead()) return false;