fix unused stuff
This commit is contained in:
parent
a5811daaaf
commit
ac34f6f25d
3 changed files with 16 additions and 22 deletions
7
opsb.c
7
opsb.c
|
@ -35,7 +35,12 @@
|
|||
#endif
|
||||
#include "opsb.h"
|
||||
|
||||
void dns_callback( void *scandata, adns_answer *a );
|
||||
typedef struct cache_entry {
|
||||
unsigned long ip;
|
||||
time_t when;
|
||||
} cache_entry;
|
||||
|
||||
static void dns_callback( void *scandata, adns_answer *a );
|
||||
static int startscan( scaninfo *scandata );
|
||||
static int unconf( void* );
|
||||
static int event_nickip (const CmdParams *cmdparams);
|
||||
|
|
13
opsb.h
13
opsb.h
|
@ -77,19 +77,6 @@ typedef struct opsbcfg {
|
|||
list_t *ports;
|
||||
} opsbcfg;
|
||||
|
||||
typedef struct cache_entry {
|
||||
unsigned long ip;
|
||||
time_t when;
|
||||
} cache_entry;
|
||||
|
||||
typedef struct proxy_type {
|
||||
int type;
|
||||
char name[MAXNICK];
|
||||
sockcb writefunc;
|
||||
int scanned;
|
||||
int numopen;
|
||||
} proxy_type;
|
||||
|
||||
extern Bot *opsb_bot;
|
||||
extern opsbcfg opsb;
|
||||
/* this is the list of items to be queued */
|
||||
|
|
18
proxy.c
18
proxy.c
|
@ -30,10 +30,6 @@
|
|||
#endif
|
||||
#include "opsb.h"
|
||||
|
||||
#ifndef MSG_NOSIGNAL
|
||||
#define MSG_NOSIGNAL 0
|
||||
#endif
|
||||
|
||||
typedef enum PORT_TYPE
|
||||
{
|
||||
PTYPE_HTTP = 1,
|
||||
|
@ -45,11 +41,17 @@ typedef enum PORT_TYPE
|
|||
PTYPE_MAX
|
||||
}PORT_TYPE;
|
||||
|
||||
typedef struct proxy_type {
|
||||
PORT_TYPE type;
|
||||
char name[MAXNICK];
|
||||
sockcb writefunc;
|
||||
int scanned;
|
||||
int numopen;
|
||||
} proxy_type;
|
||||
|
||||
typedef struct conninfo {
|
||||
int type;
|
||||
int port;
|
||||
int status;
|
||||
int bytesread;
|
||||
OS_SOCKET fd;
|
||||
Sock *sock;
|
||||
scaninfo *scandata;
|
||||
|
@ -94,8 +96,8 @@ static char http_send_buf[BUFSIZE];
|
|||
static int http_send_buf_len;
|
||||
static char httppost_send_buf[BUFSIZE];
|
||||
static int httppost_send_buf_len;
|
||||
char router_send_buf[BUFSIZE];
|
||||
int router_send_buf_len;
|
||||
static char router_send_buf[BUFSIZE];
|
||||
static int router_send_buf_len;
|
||||
static char wingate_send_buf[BUFSIZE];
|
||||
static int wingate_send_buf_len;
|
||||
static char socks4_send_buf[BUFSIZE];
|
||||
|
|
Reference in a new issue