Fixed some compile warnings

This commit is contained in:
Micke Prag 2010-10-14 22:36:48 +00:00
parent 5b290de4df
commit f4350244d5
4 changed files with 5 additions and 4 deletions

View file

@ -9,7 +9,7 @@
using namespace TelldusCore;
int connectWrapper(int sockfd, const struct sockaddr *addr, socklen_t addrlen) {
connect(sockfd, addr, addrlen);
return connect(sockfd, addr, addrlen);
}
class Socket::PrivateData {
@ -53,7 +53,7 @@ std::wstring Socket::read() {
char inbuf[BUFSIZE];
memset(inbuf, '\0', sizeof(inbuf));
size_t inlen = recv(d->socket, inbuf, BUFSIZE - 1, 0);
recv(d->socket, inbuf, BUFSIZE - 1, 0);
std::string msg(inbuf);
return std::wstring(msg.begin(), msg.end());