From: Thierry FOURNIER Date: Fri, 6 Dec 2013 09:39:36 +0000 (+0100) Subject: BUG/MINOR: map: The map list was declared in the map.h file X-Git-Tag: v1.5-dev20~156 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=275db69c078335a5f4545116006ecfe9219cfeff;p=thirdparty%2Fhaproxy.git 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. --- diff --git a/include/types/map.h b/include/types/map.h index 15a0ef8b16..68f1a36385 100644 --- a/include/types/map.h +++ b/include/types/map.h @@ -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 */ diff --git a/src/map.c b/src/map.c index 4b1aeb5670..81c61eb95f 100644 --- a/src/map.c +++ b/src/map.c @@ -22,6 +22,8 @@ #include #include +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) {