diff options
author | Guy Harris <guy@alum.mit.edu> | 2018-01-31 00:43:45 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2018-01-31 00:43:45 -0800 |
commit | 0dad1934af3db3f97d4371463089c8725dbfa26d (patch) | |
tree | eaedbdb157d6aae6e44ade1830a6144b08a1eaaf /print-sunrpc.c | |
parent | 44c822e9f671b7a9b2e52b781cdbf38933cbdeaf (diff) | |
download | tcpdump-0dad1934af3db3f97d4371463089c8725dbfa26d.tar.gz |
Have ip{6}addr_string take a u_char * as the second argument.
Fix warnings that introduces.
Diffstat (limited to 'print-sunrpc.c')
-rw-r--r-- | print-sunrpc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/print-sunrpc.c b/print-sunrpc.c index 74e9db38..9c62728f 100644 --- a/print-sunrpc.c +++ b/print-sunrpc.c @@ -183,14 +183,14 @@ sunrpc_print(netdissect_options *ndo, const u_char *bp, case 4: ip = (const struct ip *)bp2; ND_PRINT("%s.%s > %s.%s: %u", - ipaddr_string(ndo, &ip->ip_src), srcid, - ipaddr_string(ndo, &ip->ip_dst), dstid, length); + ipaddr_string(ndo, ip->ip_src), srcid, + ipaddr_string(ndo, ip->ip_dst), dstid, length); break; case 6: ip6 = (const struct ip6_hdr *)bp2; ND_PRINT("%s.%s > %s.%s: %u", - ip6addr_string(ndo, &ip6->ip6_src), srcid, - ip6addr_string(ndo, &ip6->ip6_dst), dstid, length); + ip6addr_string(ndo, ip6->ip6_src), srcid, + ip6addr_string(ndo, ip6->ip6_dst), dstid, length); break; default: ND_PRINT("%s.%s > %s.%s: %u", "?", srcid, "?", dstid, length); |