mirror of
https://github.com/adulau/ssldump.git
synced 2024-12-22 16:05:58 +00:00
Fix for "warning: promoted type int of K&R function parameter is not compatible with the parameter type ..."
This commit is contained in:
parent
cbb6ecf373
commit
97f6623e71
3 changed files with 10 additions and 34 deletions
|
@ -70,13 +70,8 @@ static int zero_conn(conn)
|
|||
return(0);
|
||||
}
|
||||
|
||||
int tcp_find_conn(connp,directionp,saddr,sport,daddr,dport)
|
||||
tcp_conn **connp;
|
||||
int *directionp;
|
||||
struct in_addr *saddr;
|
||||
u_short sport;
|
||||
struct in_addr *daddr;
|
||||
u_short dport;
|
||||
int tcp_find_conn(tcp_conn **connp, int *directionp,struct in_addr *saddr,
|
||||
u_short sport, struct in_addr *daddr, u_short dport)
|
||||
{
|
||||
conn_struct *conn;
|
||||
|
||||
|
@ -106,12 +101,8 @@ int tcp_find_conn(connp,directionp,saddr,sport,daddr,dport)
|
|||
return(R_NOT_FOUND);
|
||||
}
|
||||
|
||||
int tcp_create_conn(connp,i_addr,i_port,r_addr,r_port)
|
||||
tcp_conn **connp;
|
||||
struct in_addr *i_addr;
|
||||
u_short i_port;
|
||||
struct in_addr *r_addr;
|
||||
u_short r_port;
|
||||
int tcp_create_conn(tcp_conn **connp,struct in_addr *i_addr,
|
||||
u_short i_port, struct in_addr *r_addr, u_short r_port)
|
||||
{
|
||||
conn_struct *conn=0;
|
||||
|
||||
|
|
|
@ -59,17 +59,9 @@ static int create_null_analyzer PROTO_LIST((void *handle,
|
|||
struct in_addr *i_addr,u_short i_port,
|
||||
struct in_addr *r_addr,u_short r_port, struct timeval *base_time));
|
||||
|
||||
static int create_null_analyzer(handle,ctx,conn,objp,i_addr,i_port,r_addr,r_port,
|
||||
base_time)
|
||||
void *handle;
|
||||
proto_ctx *ctx;
|
||||
tcp_conn *conn;
|
||||
proto_obj **objp;
|
||||
struct in_addr *i_addr;
|
||||
u_short i_port;
|
||||
struct in_addr *r_addr;
|
||||
u_short r_port;
|
||||
struct timeval *base_time;
|
||||
static int create_null_analyzer(void *handle, proto_ctx *ctx, tcp_conn *conn,
|
||||
proto_obj **objp, struct in_addr *i_addr, u_short i_port, struct in_addr *r_addr,
|
||||
u_short r_port, struct timeval *base_time)
|
||||
{
|
||||
null_analyzer *obj=0;
|
||||
static int ctr;
|
||||
|
|
|
@ -227,16 +227,9 @@ static int create_ssl_ctx(handle,ctxp)
|
|||
return(_status);
|
||||
}
|
||||
|
||||
static int create_ssl_analyzer(handle,ctx,conn,objp,i_addr,i_port,r_addr,r_port,base_time)
|
||||
void *handle;
|
||||
proto_ctx *ctx;
|
||||
tcp_conn *conn;
|
||||
proto_obj **objp;
|
||||
struct in_addr *i_addr;
|
||||
u_short i_port;
|
||||
struct in_addr *r_addr;
|
||||
u_short r_port;
|
||||
struct timeval *base_time;
|
||||
static int create_ssl_analyzer(void *handle, proto_ctx *ctx, tcp_conn *conn,
|
||||
proto_obj **objp, struct in_addr *i_addr, u_short i_port, struct in_addr *r_addr,
|
||||
u_short r_port, struct timeval *base_time)
|
||||
{
|
||||
int r,_status;
|
||||
ssl_obj *obj=0;
|
||||
|
|
Loading…
Reference in a new issue