This commit is contained in:
Max Lv
2018-09-02 17:21:23 -07:00
parent 1dcfe68c8c
commit dd5e954ab4
16 changed files with 123 additions and 145 deletions
+3 -5
View File
@@ -24,7 +24,6 @@
#include "config.h"
#endif
#include <string.h>
#ifndef __MINGW32__
#include <unistd.h>
@@ -53,7 +52,7 @@ static struct cork_env *env = NULL;
static struct cork_exec *exec = NULL;
static struct cork_subprocess *sub = NULL;
#ifdef __MINGW32__
static uint16_t sub_control_port = 0;
static uint16_t sub_control_port = 0;
void cork_subprocess_set_control(struct cork_subprocess *self, uint16_t port);
#endif
@@ -122,7 +121,7 @@ start_ss_plugin(const char *plugin,
#ifdef __MINGW32__
cork_subprocess_set_control(sub, sub_control_port);
#endif
return cork_subprocess_start(sub);
}
@@ -164,7 +163,7 @@ start_obfsproxy(const char *plugin,
{
char *pch;
char *opts_dump = NULL;
char *buf = NULL;
char *buf = NULL;
int ret, buf_size = 0;
if (plugin_opts != NULL) {
@@ -342,4 +341,3 @@ is_plugin_running()
}
return 0;
}