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());

View file

@ -39,7 +39,7 @@ void ConnectionListener::run(){
//Timeout for select
SOCKET_T serverSocket;
struct sockaddr_un remote, name;
struct sockaddr_un name;
socklen_t len;
serverSocket = socket(PF_LOCAL, SOCK_STREAM, 0);
if (serverSocket < 0) {

View file

@ -30,6 +30,7 @@ Event *EventHandler::addEvent() {
}
bool EventHandler::removeEvent(EventBase *event) {
return true;
}
void EventHandler::signal(Event *event) {

View file

@ -7,7 +7,7 @@ std::string ProtocolBrateck::getStringForMethod(int method, unsigned char, Contr
const char BX[] = {S,L,L,S,0};
const char B0[] = {S,L,S,L,0};
const char BUP[] = {L,S,L,S,S,L,S,L,S,L,S,L,S,L,S,L,S,0};
const char BSTOP[] = {S,L,S,L,L,S,L,S,S,L,S,L,S,L,S,L,S,0};
//const char BSTOP[] = {S,L,S,L,L,S,L,S,S,L,S,L,S,L,S,L,S,0};
const char BDOWN[] = {S,L,S,L,S,L,S,L,S,L,S,L,L,S,L,S,S,0};
std::string strReturn;