aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOliver Smith <osmith@sysmocom.de>2021-08-18 09:09:25 +0200
committerHarald Welte <laforge@osmocom.org>2021-08-18 10:32:10 +0200
commit3163b8817fec288e3aafae2a81d10ad01eed2852 (patch)
tree6778471190101fd99bc86d3d06f5bb542682d42f
parent641c221fab3d11b372748c702526c7f6bad33b8d (diff)
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
-rw-r--r--src/rtl_tcp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rtl_tcp.c b/src/rtl_tcp.c
index ad930c8..89b1fb9 100644
--- a/src/rtl_tcp.c
+++ b/src/rtl_tcp.c
@@ -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;