mirror of
https://github.com/rtlsdrblog/rtl-sdr-blog.git
synced 2024-11-10 04:37:37 +01:00
rtl_tcp: put new DEFAULT_* constants in defines
Fix failures with some GCC versions: /usr/src/packages/BUILD/src/rtl_tcp.c:90:24: error: initializer element is not constant static int llbuf_num = DEFAULT_MAX_NUM_BUFFERS; Fixes: 641c22 ("rtl_tcp: Extracted some constants out of printf strings") Change-Id: Ia9e18d4c22d957f561dcdaf2657bb6d201374375
This commit is contained in:
parent
641c221fab
commit
3163b8817f
@ -56,9 +56,9 @@ typedef int socklen_t;
|
||||
#define SOCKET_ERROR -1
|
||||
#endif
|
||||
|
||||
static const char* DEFAULT_PORT_STR = "1234";
|
||||
static const uint32_t DEFAULT_SAMPLE_RATE_HZ = 2048000;
|
||||
static const int DEFAULT_MAX_NUM_BUFFERS = 500;
|
||||
#define DEFAULT_PORT_STR "1234"
|
||||
#define DEFAULT_SAMPLE_RATE_HZ 2048000
|
||||
#define DEFAULT_MAX_NUM_BUFFERS 500
|
||||
|
||||
static SOCKET s;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user