mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-10-24 17:33:46 +00:00
Refine the defination of global variables
This commit is contained in:
+1
-1
@@ -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
@@ -25,6 +25,6 @@
|
||||
|
||||
#include "obfs.h"
|
||||
|
||||
obfs_para_t *const obfs_http;
|
||||
extern obfs_para_t *obfs_http;
|
||||
|
||||
#endif
|
||||
|
||||
+1
-1
@@ -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
@@ -140,6 +140,6 @@ typedef struct frame {
|
||||
|
||||
#pragma pack(pop)
|
||||
|
||||
obfs_para_t *const obfs_tls;
|
||||
extern obfs_para_t *obfs_tls;
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user