]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
Rename LIST_HEAD to INITIALIZED_LIST_HEAD.
authorAndre Noll <maan@systemlinux.org>
Tue, 21 Jul 2009 15:56:02 +0000 (17:56 +0200)
committerAndre Noll <maan@systemlinux.org>
Tue, 21 Jul 2009 15:56:02 +0000 (17:56 +0200)
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

audiod_command.c
list.h

index 2eaf26b9ca0809c28b4b0c8d2d4c20e54fb9907d..bb916713254d96829a953a84121b0a3daeb992ba 100644 (file)
@@ -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 db2e84908130676e22f346eedea116254786146d..80f36a1ba58ee0032fb3fbd99c4054a03c917cbd 100644 (file)
--- 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 */