diff --git a/Application/PresenceDetection.cc b/Application/PresenceDetection.cc index 001762a..4ac7eac 100644 --- a/Application/PresenceDetection.cc +++ b/Application/PresenceDetection.cc @@ -65,13 +65,6 @@ int main(int argc, char** argv) close(STDERR_FILENO); } - int port; - boost::optional presenceDetectionPort = pt.get_child_optional("PresenceDetection.Port"); - if (presenceDetectionPort) - port = pt.get("PresenceDetection.Port"); - else - throw std::runtime_error("Port directive missing in ini file."); - std::string target; boost::optional presenceDetectionTarget = pt.get_child_optional("PresenceDetection.Target"); if (presenceDetectionTarget) diff --git a/Application/Test.cc b/Application/Test.cc index 154807c..7843909 100644 --- a/Application/Test.cc +++ b/Application/Test.cc @@ -35,7 +35,7 @@ static float tv2fl(struct timeval tv) return (float)(tv.tv_sec*1000.0) + (float)(tv.tv_usec/1000.0); } -static void stat(int sig) +static void stat(int /*sig*/) { int loss = sent_pkt ? (float)((sent_pkt-recv_pkt)/(sent_pkt/100.0)) : 0; printf("%d sent, %d received, %d%% loss\n", sent_pkt, recv_pkt, loss); diff --git a/PresenceDetection.ini b/PresenceDetection.ini index b3e31fb..9278f3c 100644 --- a/PresenceDetection.ini +++ b/PresenceDetection.ini @@ -1,5 +1,4 @@ [PresenceDetection] -Port = 8000 Target = UniFi = On Bluetooth = On