From: Andre Noll Date: Tue, 21 Jul 2009 15:56:02 +0000 (+0200) Subject: Rename LIST_HEAD to INITIALIZED_LIST_HEAD. X-Git-Tag: v0.4.0~46 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=c36f5e92c572c8eaf77c227bce164b9e98a74a3e Rename LIST_HEAD to INITIALIZED_LIST_HEAD. 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 --- diff --git a/audiod_command.c b/audiod_command.c index 2eaf26b9..bb916713 100644 --- a/audiod_command.c +++ b/audiod_command.c @@ -58,7 +58,7 @@ struct stat_client { 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}. */ diff --git a/list.h b/list.h index db2e8490..80f36a1b 100644 --- a/list.h +++ b/list.h @@ -34,7 +34,7 @@ struct list_head { }; /** 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 */