summaryrefslogtreecommitdiff
path: root/controller/fw/tools/dsss_demod_test.c
diff options
context:
space:
mode:
authorjaseg <git-bigdata-wsl-arch@jaseg.de>2020-03-09 14:18:09 +0100
committerjaseg <git-bigdata-wsl-arch@jaseg.de>2020-03-09 14:18:09 +0100
commitb0a523248766c1e001ea0f5d2e40c23b3178e629 (patch)
treeed0387a9a8707e300c1186da859c0388e528f716 /controller/fw/tools/dsss_demod_test.c
parent5997a24fcb28b07936f03a1f7c792c31b86451cc (diff)
downloadmaster-thesis-b0a523248766c1e001ea0f5d2e40c23b3178e629.tar.gz
master-thesis-b0a523248766c1e001ea0f5d2e40c23b3178e629.tar.bz2
master-thesis-b0a523248766c1e001ea0f5d2e40c23b3178e629.zip
Fix a bunch of compiler warnings
Diffstat (limited to 'controller/fw/tools/dsss_demod_test.c')
-rw-r--r--controller/fw/tools/dsss_demod_test.c5
1 files changed, 3 insertions, 2 deletions
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<n_samples; i++) {
//fprintf(stderr, "Iteration %zd/%zd\n", i, n_samples);
- dsss_demod_step(&demod, buf_f[i], i, record_channel);
+ dsss_demod_step(&demod, buf_f[i], i);
}
+ free(buf);
return 0;
}