mirror of
https://github.com/3proxy/3proxy.git
synced 2026-10-16 00:25:48 +08:00
Remove fields and declarations nothing uses
conf.haveerror was only initialised and srvparam.srvfds only declared; the extern declarations of stdlog and demon named globals that do not exist (both are fields of conf); a local in make_ace() and one in the webadmin XML page were never used. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
a2592f4038
commit
8887031324
@ -247,7 +247,6 @@ struct extparam conf = {
|
||||
.poolmax = -1,
|
||||
.pooltimeout = 60,
|
||||
.counterd = -1,
|
||||
.haveerror = 0,
|
||||
.rotate = 0,
|
||||
.paused = 0,
|
||||
.archiverc = 0,
|
||||
|
||||
@ -1337,7 +1337,6 @@ struct ace * make_ace (int argc, unsigned char ** argv){
|
||||
arg = (unsigned char *)strtok((char *)argv[2], ",");
|
||||
if(arg) do {
|
||||
int arglen;
|
||||
unsigned char *pattern;
|
||||
struct iplist tmpip={NULL};
|
||||
|
||||
arglen = (int)strlen((char *)arg);
|
||||
|
||||
@ -275,7 +275,6 @@ int hascap(const unsigned char *line, const char *cap);
|
||||
void dolog(struct clientparam * param, const unsigned char *s);
|
||||
int dobuf(struct clientparam * param, unsigned char * buf, const unsigned char *s, const unsigned char * doublec);
|
||||
int dobuf2(struct clientparam * param, unsigned char * buf, const unsigned char *s, const unsigned char * doublec, struct tm* tm, char * format);
|
||||
extern FILE * stdlog;
|
||||
void logstdout(struct clientparam * param, const unsigned char *s);
|
||||
void logsyslog(struct clientparam * param, const unsigned char *s);
|
||||
void lognone(struct clientparam * param, const unsigned char *s);
|
||||
@ -316,7 +315,6 @@ int socks5_udp_build_hdr(unsigned char *buf, PROXYSOCKADDRTYPE *addr);
|
||||
extern struct auth authfuncs[];
|
||||
|
||||
int reload (void);
|
||||
extern int demon;
|
||||
|
||||
unsigned char * mycrypt(const unsigned char *key, const unsigned char *salt, unsigned char *buf);
|
||||
unsigned char * ntpwdhash (unsigned char *szHash, const unsigned char *szPassword, int tohex);
|
||||
|
||||
@ -671,7 +671,6 @@ struct srvparam {
|
||||
int o_nsfd;
|
||||
#endif
|
||||
struct auth *authenticate;
|
||||
struct pollfd * srvfds;
|
||||
struct ace *acl;
|
||||
#ifdef WITH_HTTPSRV
|
||||
struct httprule *httprules;
|
||||
@ -862,7 +861,7 @@ struct extparam {
|
||||
struct trafcount * trafcounter;
|
||||
struct srvparam *services;
|
||||
int stacksize,
|
||||
counterd, haveerror, rotate, paused, archiverc,
|
||||
counterd, rotate, paused, archiverc,
|
||||
demon, maxchild, backlog, version, noforce, bandlimver, parentretries;
|
||||
unsigned authcachetype, authcachetime;
|
||||
int filtermaxsize;
|
||||
|
||||
@ -503,7 +503,6 @@ int op_admin_services(struct httpreq *r, const unsigned char *params)
|
||||
{
|
||||
struct clientparam *param = r->param;
|
||||
struct printparam pp;
|
||||
char *buf;
|
||||
const char *sel;
|
||||
|
||||
if(param->srv->s_option) return op_admin(r, params);
|
||||
@ -514,7 +513,6 @@ int op_admin_services(struct httpreq *r, const unsigned char *params)
|
||||
wrapper the other pages share. */
|
||||
pp.inbuf = 0;
|
||||
pp.cp = param;
|
||||
buf = NULL;
|
||||
|
||||
if(sel[0] == 'X') printstr(&pp, style);
|
||||
else {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user