Commit d18e7d8c authored by Axel Auweter's avatar Axel Auweter
Browse files

Straightforward fixes for ticket #12.

parent c8dab647
include ../config.mk
CXXFLAGS = -O0 -g -Wall -fmessage-length=0 -I$(DCDBDEPLOYPATH)/include/
CXXFLAGS = -O0 -g --std=c++11 -Wall -fmessage-length=0 -I$(DCDBDEPLOYPATH)/include/
OBJS = collectagent.o \
simplemqttserver.o \
simplemqttserverthread.o \
......
......@@ -121,7 +121,7 @@ ssize_t SimpleMQTTMessage::receiveMessage(void* buf, size_t len)
if (!remainingRaw) {
remainingRaw = malloc(remainingLength);
if (!remainingRaw) {
throw new system_error(errno, system_category(), "Error in SimpleMQTTMessage::receiveMessage().");
throw new boost::system::system_error(errno, boost::system::system_category(), "Error in SimpleMQTTMessage::receiveMessage().");
}
}
......
......@@ -260,7 +260,7 @@ void SimpleMQTTServerMessageThread::run()
yield();
if (numfds == -1)
throw new system_error(errno, system_category(), "Error in poll().");
throw new boost::system::system_error(errno, boost::system::system_category(), "Error in poll().");
/*
* Apparently, there is work to do...
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment