diff options
author | Christian Pointner <equinox@anytun.org> | 2009-03-05 00:22:12 +0000 |
---|---|---|
committer | Christian Pointner <equinox@anytun.org> | 2009-03-05 00:22:12 +0000 |
commit | 748649b4b5df7d26ab8ada7433fc5964d02cf8b7 (patch) | |
tree | cf453e682ea50650d7e4c45dd490cf0884d2131a /src | |
parent | fixed const @ tundevice (diff) |
fixed tunDev-- Diese und die folgenden Zeilen werden ignoriert --
M src/bsd/tunDevice.cpp
M src/linux/tunDevice.cpp
Diffstat (limited to 'src')
-rw-r--r-- | src/bsd/tunDevice.cpp | 4 | ||||
-rw-r--r-- | src/linux/tunDevice.cpp | 4 |
2 files changed, 4 insertions, 4 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; diff --git a/src/linux/tunDevice.cpp b/src/linux/tunDevice.cpp index b221ebb..b34ae9d 100644 --- a/src/linux/tunDevice.cpp +++ b/src/linux/tunDevice.cpp @@ -98,7 +98,7 @@ int TunDevice::fix_return(int ret, size_t pi_length) const return (static_cast<size_t>(ret) > pi_length ? (ret - pi_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; @@ -118,7 +118,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; |