BUG/MINOR: map: The map list was declared in the map.h file

This bug is harmless and post-dev19, it does not require any backport.
This commit is contained in:
Thierry FOURNIER 2013-12-06 10:39:36 +01:00 committed by Willy Tarreau
parent ab92cf3a09
commit 275db69c07
2 changed files with 3 additions and 1 deletions

View 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 */

View File

@ -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)
{