mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-11-01 07:30:02 +00:00
Clean up
This commit is contained in:
+3
-5
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user