This fixes the following warning on NetBSD:
In file included from udp_send.c:25:
list.h:37:1: warning: "LIST_HEAD" redefined
In file included from /usr/include/net/if.h:84,
from udp_send.c:14:
/usr/include/sys/queue.h:88:1: warning: this is the location of the previous definition
struct list_head node;
};
-static LIST_HEAD(client_list);
+static INITIALIZED_LIST_HEAD(client_list);
static int num_clients;
/** The list of all status items used by para_{server,audiod,gui}. */
};
/** Define an initialized list head. */
-#define LIST_HEAD(name) struct list_head name = { &(name), &(name) }
+#define INITIALIZED_LIST_HEAD(name) struct list_head name = { &(name), &(name) }
/** must be called before using any other list functions */