aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2019-07-03 15:38:29 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2019-07-03 15:38:29 +0200
commite7a9a94fb8ebd50e10ed403ef871620181d3aa1d (patch)
tree2e9e0cdf04b6d97cc5155e67c83aeb41755e2969
parent2e8f75172d3928df7f113a7176f4fc275f6ed379 (diff)
downloadODR-AudioEnc-e7a9a94fb8ebd50e10ed403ef871620181d3aa1d.tar.gz
ODR-AudioEnc-e7a9a94fb8ebd50e10ed403ef871620181d3aa1d.tar.bz2
ODR-AudioEnc-e7a9a94fb8ebd50e10ed403ef871620181d3aa1d.zip
Remove warning and useless include in StatsPublish
-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
*