diff options
author | Jeff Morriss <jeff.morriss@ulticom.com> | 2011-01-14 03:44:58 +0000 |
---|---|---|
committer | Jeff Morriss <jeff.morriss@ulticom.com> | 2011-01-14 03:44:58 +0000 |
commit | 6cfdeed2800a7b9bb8ddb1b1d40b2a4b6ddc23b9 (patch) | |
tree | 083d5704c0b3ba29be7a9fb4093e5116ca8f826c /epan/dissectors/packet-iapp.c | |
parent | c24fd241c203646e545de548ba798841c274e73c (diff) |
Replace ip_to_str((tvb_get_ptr(...)) with tvb_ip_to_str().
Replace ip6_to_str((tvb_get_ptr(...)) with tvb_ip6_to_str().
There's no need to pass the result of tvb_get_ptr() as the 'value' in
proto_tree_add_*(): just use proto_tree_add_item().
Replace some tvb_get_ptr()s with tvb_get_ephemeral_string()s.
Replace some memcpy()+tvb_get_ptr() with tvb_memcpy().
svn path=/trunk/; revision=35529
Diffstat (limited to 'epan/dissectors/packet-iapp.c')
-rw-r--r-- | epan/dissectors/packet-iapp.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/epan/dissectors/packet-iapp.c b/epan/dissectors/packet-iapp.c index 9e531f9e52..ec7b1b0342 100644 --- a/epan/dissectors/packet-iapp.c +++ b/epan/dissectors/packet-iapp.c @@ -236,8 +236,7 @@ append_authval_str(proto_item *ti, int type, int len, tvbuff_t *tvb, int offset) proto_item_append_text(ti, "%d seconds", val); break; case IAPP_AUTH_IPADDR: - proto_item_append_text(ti, "%s", - ip_to_str(tvb_get_ptr(tvb, offset + 3, 4))); + proto_item_append_text(ti, "%s", tvb_ip_to_str(tvb, offset + 3)); break; case IAPP_AUTH_TRAILER: for (z = 0; z < len; z++) |