fix compiler warnings
This commit is contained in:
parent
8c570d0fb5
commit
4a8dbddf92
2 changed files with 7 additions and 1 deletions
5
opsb.h
5
opsb.h
|
@ -138,5 +138,10 @@ void start_proxy_scan(lnode_t *scannode);
|
||||||
void send_status(User *u);
|
void send_status(User *u);
|
||||||
void check_scan_free(scaninfo *scandata);
|
void check_scan_free(scaninfo *scandata);
|
||||||
int init_libopm();
|
int init_libopm();
|
||||||
|
char *type_of_proxy(int type);
|
||||||
|
int get_proxy_by_name(const char *name);
|
||||||
|
void add_port(int type, int port);
|
||||||
|
int load_ports();
|
||||||
|
|
||||||
|
|
||||||
#endif /* OPSB_H */
|
#endif /* OPSB_H */
|
||||||
|
|
3
proxy.c
3
proxy.c
|
@ -116,7 +116,6 @@ int load_ports() {
|
||||||
}
|
}
|
||||||
|
|
||||||
int init_libopm() {
|
int init_libopm() {
|
||||||
int i, portcount;
|
|
||||||
lnode_t *pn;
|
lnode_t *pn;
|
||||||
port_list *pl;
|
port_list *pl;
|
||||||
|
|
||||||
|
@ -162,7 +161,9 @@ int init_libopm() {
|
||||||
|
|
||||||
void open_proxy(OPM_T *scanner, OPM_REMOTE_T *remote, int notused, void *unused)
|
void open_proxy(OPM_T *scanner, OPM_REMOTE_T *remote, int notused, void *unused)
|
||||||
{
|
{
|
||||||
|
#if 0
|
||||||
FILE *fp;
|
FILE *fp;
|
||||||
|
#endif
|
||||||
scaninfo *scandata;
|
scaninfo *scandata;
|
||||||
|
|
||||||
SET_SEGV_LOCATION();
|
SET_SEGV_LOCATION();
|
||||||
|
|
Reference in a new issue