summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/StatsPublish.cpp2
-rw-r--r--src/StatsPublish.h1
2 files changed, 1 insertions, 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 <cstdint>
#include <cstddef>
#include <cstdio>
-#include "common.h"
/*! \file StatsPublish.h
*