summaryrefslogtreecommitdiff
path: root/osdep
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2016-06-08 11:21:01 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2016-06-08 11:21:01 -0700
commit0ca764968ae0c09510d055390a3cec252caecfae (patch)
treea7e7b9396f991657d1d5dff8d38498df879f527e /osdep
parent62b64d39ab30b91d99b4b9aef8ef2990f86fdff6 (diff)
downloadinfinitytier-0ca764968ae0c09510d055390a3cec252caecfae.tar.gz
infinitytier-0ca764968ae0c09510d055390a3cec252caecfae.zip
Remove warnings, more Debian stuff, remove obsolete ui/ stuff.
Diffstat (limited to 'osdep')
-rw-r--r--osdep/LinuxEthernetTap.cpp6
-rw-r--r--osdep/Phy.hpp4
2 files changed, 5 insertions, 5 deletions
diff --git a/osdep/LinuxEthernetTap.cpp b/osdep/LinuxEthernetTap.cpp
index c66b7a38..6a34f48d 100644
--- a/osdep/LinuxEthernetTap.cpp
+++ b/osdep/LinuxEthernetTap.cpp
@@ -172,7 +172,7 @@ LinuxEthernetTap::LinuxEthernetTap(
// Set close-on-exec so that devices cannot persist if we fork/exec for update
::fcntl(_fd,F_SETFD,fcntl(_fd,F_GETFD) | FD_CLOEXEC);
- ::pipe(_shutdownSignalPipe);
+ (void)::pipe(_shutdownSignalPipe);
devmap[nwids] = _dev;
OSUtils::writeFile((_homePath + ZT_PATH_SEPARATOR_S + "devicemap").c_str(),devmap.toString());
@@ -182,7 +182,7 @@ LinuxEthernetTap::LinuxEthernetTap(
LinuxEthernetTap::~LinuxEthernetTap()
{
- ::write(_shutdownSignalPipe[1],"\0",1); // causes thread to exit
+ (void)::write(_shutdownSignalPipe[1],"\0",1); // causes thread to exit
Thread::join(_thread);
::close(_fd);
::close(_shutdownSignalPipe[0]);
@@ -307,7 +307,7 @@ void LinuxEthernetTap::put(const MAC &from,const MAC &to,unsigned int etherType,
*((uint16_t *)(putBuf + 12)) = htons((uint16_t)etherType);
memcpy(putBuf + 14,data,len);
len += 14;
- ::write(_fd,putBuf,len);
+ (void)::write(_fd,putBuf,len);
}
}
diff --git a/osdep/Phy.hpp b/osdep/Phy.hpp
index c32a36fd..03eb84c2 100644
--- a/osdep/Phy.hpp
+++ b/osdep/Phy.hpp
@@ -252,7 +252,7 @@ public:
#if defined(_WIN32) || defined(_WIN64)
::send(_whackSendSocket,(const char *)this,1,0);
#else
- ::write(_whackSendSocket,(PhySocket *)this,1);
+ (void)::write(_whackSendSocket,(PhySocket *)this,1);
#endif
}
@@ -871,7 +871,7 @@ public:
#if defined(_WIN32) || defined(_WIN64)
::recv(_whackReceiveSocket,tmp,16,0);
#else
- ::read(_whackReceiveSocket,tmp,16);
+ (void)::read(_whackReceiveSocket,tmp,16);
#endif
}