summaryrefslogtreecommitdiff
path: root/print-sunrpc.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2018-01-31 00:43:45 -0800
committerGuy Harris <guy@alum.mit.edu>2018-01-31 00:43:45 -0800
commit0dad1934af3db3f97d4371463089c8725dbfa26d (patch)
treeeaedbdb157d6aae6e44ade1830a6144b08a1eaaf /print-sunrpc.c
parent44c822e9f671b7a9b2e52b781cdbf38933cbdeaf (diff)
downloadtcpdump-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.c8
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);