Browse Source

Refine the defination of global variables

pull/1022/head
Max Lv 8 years ago
parent
commit
8557555c7c
4 changed files with 4 additions and 4 deletions
  1. 2
      src/obfs_http.c
  2. 2
      src/obfs_http.h
  3. 2
      src/obfs_tls.c
  4. 2
      src/obfs_tls.h

2
src/obfs_http.c

@ -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)

2
src/obfs_http.h

@ -25,6 +25,6 @@
#include "obfs.h"
obfs_para_t *const obfs_http;
extern obfs_para_t *obfs_http;
#endif

2
src/obfs_tls.c

@ -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)

2
src/obfs_tls.h

@ -140,6 +140,6 @@ typedef struct frame {
#pragma pack(pop)
obfs_para_t *const obfs_tls;
extern obfs_para_t *obfs_tls;
#endif
Loading…
Cancel
Save