[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 45eac02..a5f47e3 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 {