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
master
Oliver Smith 1 year ago committed by Harald Welte
parent 641c221fab
commit 3163b8817f
  1. 6
      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;

Loading…
Cancel
Save