处理goto导致的编译不通过。
This commit is contained in:
@@ -1,12 +1,14 @@
|
||||
#include "mirror_stream.h"
|
||||
#include <tfe_stream.h>
|
||||
#include <tfe_utils.h>
|
||||
#include <tfe_plugin.h>
|
||||
#include <assert.h>
|
||||
|
||||
int decrypt_mirror_init(struct tfe_proxy * proxy)
|
||||
{
|
||||
const char* filepath="./conf/tfe/decrypt_mirror.conf";
|
||||
int thread_num=2, ret=0;//todo: aquire from proxy;
|
||||
int thread_num=2;
|
||||
UNUSED int ret=0;//todo: aquire from proxy;
|
||||
ret=mirror_stream_init(thread_num, filepath);
|
||||
// assert(ret==0);
|
||||
return 0;
|
||||
@@ -15,7 +17,7 @@ int decrypt_mirror_init(struct tfe_proxy * proxy)
|
||||
int decrypt_mirror_on_open_cb(const struct tfe_stream * stream, unsigned int thread_id,
|
||||
enum tfe_conn_dir dir, void ** pme)
|
||||
{
|
||||
int ret=0;
|
||||
UNUSED int ret=0;
|
||||
ret=mirror_stream_open(thread_id, stream->addr, pme);
|
||||
// assert(ret==0);
|
||||
return 0;
|
||||
@@ -24,7 +26,7 @@ int decrypt_mirror_on_open_cb(const struct tfe_stream * stream, unsigned int thr
|
||||
enum tfe_stream_action decrypt_mirror_on_data_cb(const struct tfe_stream * stream, unsigned int thread_id,
|
||||
enum tfe_conn_dir dir, const unsigned char * data, size_t len, void ** pme)
|
||||
{
|
||||
int ret=0;
|
||||
UNUSED int ret=0;
|
||||
ret=mirror_stream_write(dir, data,len, pme, thread_id);
|
||||
return ACTION_FORWARD_DATA;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user