From b0a523248766c1e001ea0f5d2e40c23b3178e629 Mon Sep 17 00:00:00 2001 From: jaseg Date: Mon, 9 Mar 2020 14:18:09 +0100 Subject: Fix a bunch of compiler warnings --- controller/fw/tools/dsss_demod_test.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'controller/fw/tools') diff --git a/controller/fw/tools/dsss_demod_test.c b/controller/fw/tools/dsss_demod_test.c index fb08fb3..d09ce87 100644 --- a/controller/fw/tools/dsss_demod_test.c +++ b/controller/fw/tools/dsss_demod_test.c @@ -68,7 +68,7 @@ int main(int argc, char **argv) { if (record_channel != -1) fprintf(stderr, "Reading %zd samples test data...", st.st_size/sizeof(float)); - size_t nread = 0; + ssize_t nread = 0; while (nread < st.st_size) { ssize_t rc = read(fd, buf, st.st_size - nread); @@ -100,8 +100,9 @@ int main(int argc, char **argv) { dsss_demod_init(&demod); for (size_t i=0; i