From 499a09510db11c71178130af7e55ad7fc4db3c7d Mon Sep 17 00:00:00 2001 From: Marcus Müller <mmueller@gnuradio.org> Date: Sat, 16 Jan 2021 21:28:42 +0100 Subject: removed ssize_t, which is not standard C, and we're a C++ project MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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> --- gr-blocks/lib/udp_source_impl.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'gr-blocks/lib/udp_source_impl.h') 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 -- cgit v1.2.3