BUILD: http: properly mark some struct as extern
http_known_methods, HTTP_100 and HTTP_103 were not declared extern and as such were multiply defined since they were in http.h. There was apparently no more side effect but it may depend on the platform and the linker. This needs to be backported to 1.9.
This commit is contained in:
parent
57c99ec18e
commit
e01d11a75b
|
@ -121,11 +121,11 @@ struct http_method_desc {
|
|||
extern const int http_err_codes[HTTP_ERR_SIZE];
|
||||
extern const char *http_err_msgs[HTTP_ERR_SIZE];
|
||||
extern struct buffer http_err_chunks[HTTP_ERR_SIZE];
|
||||
const struct ist http_known_methods[HTTP_METH_OTHER];
|
||||
extern const struct ist http_known_methods[HTTP_METH_OTHER];
|
||||
extern const uint8_t http_char_classes[256];
|
||||
|
||||
const struct ist HTTP_100;
|
||||
const struct ist HTTP_103;
|
||||
extern const struct ist HTTP_100;
|
||||
extern const struct ist HTTP_103;
|
||||
extern const char *HTTP_301;
|
||||
extern const char *HTTP_302;
|
||||
extern const char *HTTP_303;
|
||||
|
|
Loading…
Reference in New Issue