]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
[CLEANUP] stick-table: declare stktable_data_types as extern
authorWilly Tarreau <w@1wt.eu>
Sun, 18 Jul 2010 05:38:17 +0000 (07:38 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 10 Aug 2010 16:04:14 +0000 (18:04 +0200)
It's fortunate we did not get hit by this stupid declaration !

include/types/stick_table.h

index 45eac020aa8392cf4d62073a16937f41e401f4eb..a5f47e3edd616450bc2c50243b8e9062a8e094c2 100644 (file)
@@ -138,7 +138,7 @@ struct stktable {
        } data_arg[STKTABLE_DATA_TYPES]; /* optional argument of each data type */
 };
 
-struct stktable_data_type stktable_data_types[STKTABLE_DATA_TYPES];
+extern struct stktable_data_type stktable_data_types[STKTABLE_DATA_TYPES];
 
 /* stick table key data */
 union stktable_key_data {