]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: map: The map list was declared in the map.h file
authorThierry FOURNIER <tfournier@exceliance.fr>
Fri, 6 Dec 2013 09:39:36 +0000 (10:39 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 6 Dec 2013 10:37:28 +0000 (11:37 +0100)
This bug is harmless and post-dev19, it does not require any backport.

include/types/map.h
src/map.c

index 15a0ef8b16d8edb7722055f19f54d0a29cdeb18a..68f1a36385b957b5563c1ba01ab98772d13eca84 100644 (file)
@@ -29,7 +29,7 @@
  *
  * "maps" is the list head. This list cotains all the mao file name identifier.
  */
-struct list maps = LIST_HEAD_INIT(maps); /* list of struct map_reference */
+extern struct list maps;
 
 struct map_reference {
        struct list list;    /* used for listing */
index 4b1aeb567047c9d124cfac5c8dd70a2388915054..81c61eb95f7fc06beb0c1be1f3646d41508f0629 100644 (file)
--- a/src/map.c
+++ b/src/map.c
@@ -22,6 +22,8 @@
 #include <proto/pattern.h>
 #include <proto/sample.h>
 
+struct list maps = LIST_HEAD_INIT(maps); /* list of struct map_reference */
+
 /* This function return existing map reference or return NULL. */
 static struct map_reference *map_get_reference(const char *reference)
 {