Fixed some compile warnings
This commit is contained in:
parent
5b290de4df
commit
f4350244d5
4 changed files with 5 additions and 4 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue