Fix compiler warnings

- implicit declaration of function ‘isprint’ [-Wimplicit-function-declaration]
- comparison between ‘result_t’ and ‘enum <anonymous>’ [-Wenum-compare]
This commit is contained in:
Simon Ruderich 2024-06-23 07:56:53 +02:00
parent d54cd8a9a8
commit 6032cd471d
2 changed files with 2 additions and 1 deletions

View file

@ -454,7 +454,7 @@ result_t layer1_rx_process(layer1_rx_t *rx, const float complex *samples, size_t
payload_enc, 8, sizeof(payload_enc), &nsyms));
fec payload_fec = modcod_create_fec(rx->modcod);
result_t res = fec_decode(payload_fec, rx->payload_len_bytes, payload_enc, payload);
int res = fec_decode(payload_fec, rx->payload_len_bytes, payload_enc, payload);
fec_destroy(payload_fec);
if(res != LIQUID_OK) {

View file

@ -1,4 +1,5 @@
#include <stdio.h>
#include <ctype.h>
#include <errno.h>
#include <time.h>