Commit 44a2cda4 authored by Olav Kvittem's avatar Olav Kvittem

fixed type warnings

parent 05f5c2a7
Pipeline #20737 passed with stages
in 2 minutes and 31 seconds
......@@ -441,7 +441,7 @@ static void print_results(void)
case AF_INET:{
struct sockaddr_in* dstin = (struct sockaddr_in *)&(flow->dst);
fprintf(stderr,"%ld %ld.%06ld %ld.%06ld %hu %s %hu %d %d %d ",
flow->flow_id, flow->flow_start.tv_sec,flow->flow_start.tv_usec,
(long)flow->flow_id, flow->flow_start.tv_sec,flow->flow_start.tv_usec,
flow->flow_stop.tv_sec,flow->flow_stop.tv_usec,
flow->flow_sport,inet_ntop(AF_INET, &(dstin->sin_addr), straddr, INET_ADDRSTRLEN),
ntohs(dstin->sin_port),flow->errors, flow->success,
......@@ -451,7 +451,7 @@ static void print_results(void)
case AF_INET6:{
struct sockaddr_in6* dstin = (struct sockaddr_in6 *)&(flow->dst);
fprintf(stderr,"%ld %ld.%06ld %ld.%06ld %hu %s %hu %d %d %d ",
flow->flow_id, flow->flow_start.tv_sec,flow->flow_start.tv_usec,
(long)flow->flow_id, flow->flow_start.tv_sec,flow->flow_start.tv_usec,
flow->flow_stop.tv_sec,flow->flow_stop.tv_usec,
flow->flow_sport,inet_ntop(AF_INET6, &(dstin->sin6_addr), straddr, sizeof(straddr)),
ntohs(dstin->sin6_port),flow->errors, flow->success,
......@@ -459,7 +459,7 @@ static void print_results(void)
}
break;
default:
fprintf(stderr,"Protocol is not known:%s ",(flow->dst).ss_family);
fprintf(stderr,"Protocol is not known:%d ",(flow->dst).ss_family);
}
switch(flow->params.ftype){
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment