From 0b9bed66989fa83407a41eeb7102b6783fb53949 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Thu, 5 Mar 2009 00:05:30 +0000 Subject: got rid of ThreadParam --- src/bsd/tunDevice.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/bsd') diff --git a/src/bsd/tunDevice.cpp b/src/bsd/tunDevice.cpp index 4e344a8..240e46c 100644 --- a/src/bsd/tunDevice.cpp +++ b/src/bsd/tunDevice.cpp @@ -192,7 +192,7 @@ void TunDevice::init_post() #error This Device works just for OpenBSD, FreeBSD or NetBSD #endif -int TunDevice::fix_return(int ret, size_t pi_length) +int TunDevice::fix_return(int ret, size_t pi_length) const { if(ret < 0) return ret; @@ -200,7 +200,7 @@ int TunDevice::fix_return(int ret, size_t pi_length) return (static_cast(ret) > type_length ? (ret - type_length) : 0); } -int TunDevice::read(u_int8_t* buf, u_int32_t len) +int TunDevice::read(u_int8_t* buf, u_int32_t len) const { if(fd_ < 0) return -1; @@ -219,7 +219,7 @@ int TunDevice::read(u_int8_t* buf, u_int32_t len) return(::read(fd_, buf, len)); } -int TunDevice::write(u_int8_t* buf, u_int32_t len) +int TunDevice::write(u_int8_t* buf, u_int32_t len) const { if(fd_ < 0) return -1; -- cgit v1.2.3