浏览代码

Added missing "static" declarations

tags/v0.9.3
Michael Brown 17 年前
父节点
当前提交
94415b7669
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2
    2
      src/net/tcp/http.c

+ 2
- 2
src/net/tcp/http.c 查看文件

@@ -216,7 +216,7 @@ struct http_header_handler {
216 216
 };
217 217
 
218 218
 /** List of HTTP header handlers */
219
-struct http_header_handler http_header_handlers[] = {
219
+static struct http_header_handler http_header_handlers[] = {
220 220
 	{
221 221
 		.header = "Content-Length",
222 222
 		.rx = http_rx_content_length,
@@ -279,7 +279,7 @@ struct http_line_handler {
279 279
 };
280 280
 
281 281
 /** List of HTTP line-based data handlers */
282
-struct http_line_handler http_line_handlers[] = {
282
+static struct http_line_handler http_line_handlers[] = {
283 283
 	[HTTP_RX_RESPONSE]	= { .rx = http_rx_response },
284 284
 	[HTTP_RX_HEADER]	= { .rx = http_rx_header },
285 285
 };

正在加载...
取消
保存