From f93ab584d899ce15569ca1d5204869a29369c2c2 Mon Sep 17 00:00:00 2001 From: Martine Lenders Date: Fri, 7 Oct 2016 14:57:36 +0200 Subject: [PATCH] sock: make queue_array parameter a pointer MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Since sock_tcp_t isn't defined at this moment (only declared) the compiler is complaining about the use of an array in the parameter list here. sys/include/net/sock/tcp.h:119:32: error: array type has incomplete element type ‘sock_tcp_t {aka struct sock_tcp}’ sock_tcp_t queue_array[], unsigned queue_len, ^ --- sys/include/net/sock/tcp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/include/net/sock/tcp.h b/sys/include/net/sock/tcp.h index 42eb6fe7b..6bda4db5c 100644 --- a/sys/include/net/sock/tcp.h +++ b/sys/include/net/sock/tcp.h @@ -116,7 +116,7 @@ int sock_tcp_connect(sock_tcp_t *sock, const sock_tcp_ep_t *remote, * @return -ENOMEM, if no memory was available to listen on @p queue. */ int sock_tcp_listen(sock_tcp_queue_t *queue, const sock_tcp_ep_t *local, - sock_tcp_t[] queue_array, unsigned queue_len, + sock_tcp_t *queue_array, unsigned queue_len, uint16_t flags); /**