From e7a9a94fb8ebd50e10ed403ef871620181d3aa1d Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Wed, 3 Jul 2019 15:38:29 +0200 Subject: Remove warning and useless include in StatsPublish --- src/StatsPublish.cpp | 2 +- src/StatsPublish.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/StatsPublish.cpp b/src/StatsPublish.cpp index ccf2bb4..0bad833 100644 --- a/src/StatsPublish.cpp +++ b/src/StatsPublish.cpp @@ -109,7 +109,7 @@ void StatsPublisher::send_stats() fprintf(stderr, "Statistics send failed: %s\n", strerror(errno)); } } - else if (ret != yamlstr.size()) { + else if (ret != (ssize_t)yamlstr.size()) { fprintf(stderr, "Statistics send incorrect length: %d bytes of %zu transmitted\n", ret, yamlstr.size()); } diff --git a/src/StatsPublish.h b/src/StatsPublish.h index 7702f66..f593c7c 100644 --- a/src/StatsPublish.h +++ b/src/StatsPublish.h @@ -21,7 +21,6 @@ #include #include #include -#include "common.h" /*! \file StatsPublish.h * -- cgit v1.2.3