diff options
author | Thierry Bultel <thierry.bultel@iot.bzh> | 2018-06-29 15:52:46 +0200 |
---|---|---|
committer | Thierry Bultel <thierry.bultel@iot.bzh> | 2018-07-17 10:50:07 +0200 |
commit | c0e174c085478e8bcea1a31d527df6e58f7448d1 (patch) | |
tree | 68beae1bb02a202a0793c008892a7c423c430cd9 /binding/radio_impl_rtlsdr.c | |
parent | d564d41b640f3ed69e16cc0e2eaf258778191b04 (diff) |
Fixed compilation warnings
Fixed all the compilation warning that appeared
with the latest version of gcc.
There are still warnings in the gstreamer headers,
that would likely be fixed by a gstreamer bump.
Change-Id: I3ae7698dbff47303be366d9755a643a013bb4e51
Signed-off-by: Thierry Bultel <thierry.bultel@iot.bzh>
Diffstat (limited to 'binding/radio_impl_rtlsdr.c')
-rw-r--r-- | binding/radio_impl_rtlsdr.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/binding/radio_impl_rtlsdr.c b/binding/radio_impl_rtlsdr.c index b8b2454..9a1c492 100644 --- a/binding/radio_impl_rtlsdr.c +++ b/binding/radio_impl_rtlsdr.c @@ -218,7 +218,7 @@ static void rtlsdr_set_frequency(uint32_t frequency) char cmd[64]; char output[128]; bool found = false; - int rc; + ssize_t rc; uint32_t n; if(!present) @@ -315,7 +315,7 @@ static void rtlsdr_start(void) return; if(!active) { - int rc; + ssize_t rc; char cmd[64]; sprintf(cmd, "START\n"); @@ -334,7 +334,6 @@ static void rtlsdr_stop(void) return; if(active) { - int rc; char cmd[64]; active = false; @@ -349,7 +348,7 @@ static void rtlsdr_scan_start(radio_scan_direction_t direction, radio_scan_callback_t callback, void *data) { - int rc; + ssize_t rc; char cmd[64]; char output[128]; bool found = false; |