summaryrefslogtreecommitdiff
path: root/src/bsd/tunDevice.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/bsd/tunDevice.cpp')
-rw-r--r--src/bsd/tunDevice.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bsd/tunDevice.cpp b/src/bsd/tunDevice.cpp
index 240e46c..408434e 100644
--- a/src/bsd/tunDevice.cpp
+++ b/src/bsd/tunDevice.cpp
@@ -200,7 +200,7 @@ int TunDevice::fix_return(int ret, size_t pi_length) const
return (static_cast<size_t>(ret) > type_length ? (ret - type_length) : 0);
}
-int TunDevice::read(u_int8_t* buf, u_int32_t len) const
+int TunDevice::read(u_int8_t* buf, u_int32_t len)
{
if(fd_ < 0)
return -1;
@@ -219,7 +219,7 @@ int TunDevice::read(u_int8_t* buf, u_int32_t len) const
return(::read(fd_, buf, len));
}
-int TunDevice::write(u_int8_t* buf, u_int32_t len) const
+int TunDevice::write(u_int8_t* buf, u_int32_t len)
{
if(fd_ < 0)
return -1;