SHA256
1
0
forked from pool/rtl-sdr
rtl-sdr/rtl-sdr-0014-initialize-listensocket_in-rtl_tcp.patch
Martin Hauke 1ea97b31dd Accepting request 907681 from home:wkazubski:test:science
- patches:
    rtl-sdr-0003-disable-zerocopy-by-default.patch
    rtl-sdr-0007-allow-build-rtlsdr-as-subroject.patch
    rtl-sdr-0008-add-CMP0075-policy.patch
    rtl-sdr-0016-add-missing-rtlsdrConfig.patch
    rtl-sdr-0017-add-rtl_biast-as-install-target.patch
    rtl-sdr-0018-fix-for-older-cmake.patch
  merged into rtl-sdr-0015-modernize-cmake-usage.patch
- patch rtl-sdr-0005-add-rtlsdr_set_bias_tee_gpio.patch
  merged into rtl-sdr-0006-add-rtl_biast.patch
- Added patches to upgrade to latest git head (only significant
  changes), including:
    + rtl-sdr-0001-mmap-bug-arm.patch
    + rtl-sdr-0002-fix-rtlsdr_open-memory-leak.patch
    + rtl-sdr-0003-disable-zerocopy-by-default.patch
    + rtl-sdr-0004-fix-rtl_eeprom-warnings.patch
    + rtl-sdr-0005-add-rtlsdr_set_bias_tee_gpio.patch
    + rtl-sdr-0006-add-rtl_biast.patch
    + rtl-sdr-0007-allow-build-rtlsdr-as-subroject.patch
    + rtl-sdr-0008-add-CMP0075-policy.patch
    + rtl-sdr-0009-fix-FC0013-UHF-reception.patch
    + rtl-sdr-0010-improve-librtlsdr_pc.patch
    + rtl-sdr-0011-improve-rtl_power--scanning-range-parsing.patch
    + rtl-sdr-0012-use-udev-uaccess_rules.patch (not used)
    + rtl-sdr-0013-add-IPV6-for-rtl_tcp.patch
    + rtl-sdr-0014-initialize-listensocket_in-rtl_tcp.patch
    + rtl-sdr-0015-modernize-cmake-usage.patch
    + rtl-sdr-0016-add-missing-rtlsdrConfig.patch
    + rtl-sdr-0017-add-rtl_biast-as-install-target.patch
    + rtl-sdr-0018-fix-for-older-cmake.patch
    + rtl-sdr-0019-fix-short-write-in-r82xx_read.patch
    + rtl-sdr-0020-populate-pkgconfig-with-prefix.patch
  * Full bias tee support for RTL-SDR v3 dongle
  * Command line utility rtl_biast for controlling bias tee
  * IPV-6 support for rtl_tcp
  * Fixed some bugs and compile time issues

OBS-URL: https://build.opensuse.org/request/show/907681
OBS-URL: https://build.opensuse.org/package/show/hardware:sdr/rtl-sdr?expand=0&rev=21
2021-07-31 09:22:31 +00:00

26 lines
777 B
Diff

From f427883320cbb65e254644717f5d7963e37bbd1d Mon Sep 17 00:00:00 2001
From: Steve Markgraf <steve@steve-m.de>
Date: Wed, 26 Feb 2020 23:52:02 +0100
Subject: [PATCH] rtl_tcp: Initialize listensocket
Older versions of GCC will complain that it can be used
uninitialized - which is not the case, but it breaks our Jenkins
build as we build with -Werror.
---
src/rtl_tcp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/rtl_tcp.c b/src/rtl_tcp.c
index 42b90cb..562198f 100644
--- a/src/rtl_tcp.c
+++ b/src/rtl_tcp.c
@@ -394,7 +394,7 @@ int main(int argc, char **argv)
void *status;
struct timeval tv = {1,0};
struct linger ling = {1,0};
- SOCKET listensocket;
+ SOCKET listensocket = 0;
socklen_t rlen;
fd_set readfds;
u_long blockmode = 1;