summaryrefslogtreecommitdiff
path: root/gr-blocks/lib/udp_source_impl.h
diff options
context:
space:
mode:
authorMarcus Müller <mmueller@gnuradio.org>2021-01-16 21:28:42 +0100
committerMartin Braun <martin@gnuradio.org>2021-02-23 14:28:18 +0100
commit499a09510db11c71178130af7e55ad7fc4db3c7d (patch)
tree78131c9dc1604d4097d38fbab19b92e7cc419c62 /gr-blocks/lib/udp_source_impl.h
parent1f5dc898e902fdec5afb2d60f3083320e50e34f8 (diff)
removed ssize_t, which is not standard C, and we're a C++ project
Co-authored-by: Josh Morman <jmorman@perspectalabs.com> Signed-off-by: Josh Morman <jmorman@perspectalabs.com> Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
Diffstat (limited to 'gr-blocks/lib/udp_source_impl.h')
-rw-r--r--gr-blocks/lib/udp_source_impl.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/gr-blocks/lib/udp_source_impl.h b/gr-blocks/lib/udp_source_impl.h
index 608b44504a..a2dc2dc9dc 100644
--- a/gr-blocks/lib/udp_source_impl.h
+++ b/gr-blocks/lib/udp_source_impl.h
@@ -15,6 +15,7 @@
#include <gnuradio/thread/thread.h>
#include <boost/asio.hpp>
#include <boost/format.hpp>
+#include <cstddef>
#include <memory>
namespace gr {
@@ -29,8 +30,9 @@ private:
bool d_connected; // are we connected?
std::vector<char> d_rxbuf; // get UDP buffer items
std::vector<char> d_residbuf; // hold buffer between calls
- ssize_t d_residual; // hold information about number of bytes stored in residbuf
- ssize_t d_sent; // track how much of d_residbuf we've outputted
+ std::ptrdiff_t
+ d_residual; // hold information about number of bytes stored in residbuf
+ size_t d_sent; // track how much of d_residbuf we've outputted
static const int
BUF_SIZE_PAYLOADS; //!< The d_residbuf size in multiples of d_payload_size