diff options
author | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2018-01-11 23:06:48 +0100 |
---|---|---|
committer | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2018-01-11 23:06:48 +0100 |
commit | f252fd6aeafc2a71d1736063025ee6d2d7aa2151 (patch) | |
tree | b3a4901cd4a697aa3cf7db005b63417f2e68be0a /print-udp.c | |
parent | 64677b0d78ff168d98c3035e894c4910c021136e (diff) | |
download | tcpdump-f252fd6aeafc2a71d1736063025ee6d2d7aa2151.tar.gz |
Remove unneeded '&' when getting a pointer to an nd_uintN_t type
Diffstat (limited to 'print-udp.c')
-rw-r--r-- | print-udp.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/print-udp.c b/print-udp.c index f9105502..ede213fc 100644 --- a/print-udp.c +++ b/print-udp.c @@ -450,7 +450,7 @@ udp_print(netdissect_options *ndo, const u_char *bp, u_int length, case PT_RPC: rp = (const struct sunrpc_msg *)(up + 1); - direction = (enum sunrpc_msg_type) EXTRACT_BE_U_4(&rp->rm_direction); + direction = (enum sunrpc_msg_type) EXTRACT_BE_U_4(rp->rm_direction); if (direction == SUNRPC_CALL) sunrpc_print(ndo, (const u_char *)rp, length, (const u_char *)ip); @@ -521,15 +521,17 @@ udp_print(netdissect_options *ndo, const u_char *bp, u_int length, rp = (const struct sunrpc_msg *)(up + 1); if (ND_TTEST(rp->rm_direction)) { - direction = (enum sunrpc_msg_type) EXTRACT_BE_U_4(&rp->rm_direction); + direction = (enum sunrpc_msg_type) EXTRACT_BE_U_4(rp->rm_direction); if (dport == NFS_PORT && direction == SUNRPC_CALL) { - ND_PRINT("NFS request xid %u ", EXTRACT_BE_U_4(&rp->rm_xid)); + ND_PRINT("NFS request xid %u ", + EXTRACT_BE_U_4(rp->rm_xid)); nfsreq_noaddr_print(ndo, (const u_char *)rp, length, (const u_char *)ip); return; } if (sport == NFS_PORT && direction == SUNRPC_REPLY) { - ND_PRINT("NFS reply xid %u ", EXTRACT_BE_U_4(&rp->rm_xid)); + ND_PRINT("NFS reply xid %u ", + EXTRACT_BE_U_4(rp->rm_xid)); nfsreply_noaddr_print(ndo, (const u_char *)rp, length, (const u_char *)ip); return; |