Refine the defination of global variables

This commit is contained in:
Max Lv
2016-12-28 21:07:24 +08:00
parent 2694e86bd9
commit 8557555c7c
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -67,7 +67,7 @@ static obfs_para_t obfs_http_st = {
.is_enable = &is_enable_http
};
obfs_para_t *const obfs_http = &obfs_http_st;
obfs_para_t *obfs_http = &obfs_http_st;
static int
obfs_http_request(buffer_t *buf, size_t cap, obfs_t *obfs)
+1 -1
View File
@@ -25,6 +25,6 @@
#include "obfs.h"
obfs_para_t *const obfs_http;
extern obfs_para_t *obfs_http;
#endif
+1 -1
View File
@@ -180,7 +180,7 @@ static obfs_para_t obfs_tls_st = {
.is_enable = &is_enable_tls
};
obfs_para_t *const obfs_tls = &obfs_tls_st;
obfs_para_t *obfs_tls = &obfs_tls_st;
static int
obfs_app_data(buffer_t *buf, size_t cap, obfs_t *obfs)
+1 -1
View File
@@ -140,6 +140,6 @@ typedef struct frame {
#pragma pack(pop)
obfs_para_t *const obfs_tls;
extern obfs_para_t *obfs_tls;
#endif