aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-daap.c
diff options
context:
space:
mode:
authorwmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7>2011-10-21 02:10:19 +0000
committerwmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7>2011-10-21 02:10:19 +0000
commit06b82a395a87dfcf4139fb44caeb9f4952f56b6d (patch)
treea955184a13d8444bdec0de9200f261c46cfa2734 /epan/dissectors/packet-daap.c
parent75cdd631a75832f542fe2b02ea6a469fdfcffa8a (diff)
For proto_tree_add_item(..., proto_xxx, ...)use ENC_NA as the encoding arg.
Also: remove trailing whitespace for a number of files. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39503 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-daap.c')
-rw-r--r--epan/dissectors/packet-daap.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/epan/dissectors/packet-daap.c b/epan/dissectors/packet-daap.c
index 63b0e3b387..3b68d3f4db 100644
--- a/epan/dissectors/packet-daap.c
+++ b/epan/dissectors/packet-daap.c
@@ -421,7 +421,7 @@ dissect_daap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
}
if (tree) {
- ti = proto_tree_add_item(tree, proto_daap, tvb, 0, -1, ENC_BIG_ENDIAN);
+ ti = proto_tree_add_item(tree, proto_daap, tvb, 0, -1, ENC_NA);
daap_tree = proto_item_add_subtree(ti, ett_daap);
dissect_daap_one_tag(daap_tree, tvb);
}
@@ -458,7 +458,7 @@ dissect_daap_one_tag(proto_tree *tree, tvbuff_t *tvb)
offset += 8;
- len = reported_length - offset; /* should be >= 0 since no exception above */
+ len = reported_length - offset; /* should be >= 0 since no exception above */
DISSECTOR_ASSERT(len >= 0);
if (tagsize <= (unsigned)len) {
len = tagsize;
@@ -685,7 +685,7 @@ dissect_daap_one_tag(proto_tree *tree, tvbuff_t *tvb)
/* now playing */
/* bytes 4-7 contain uint32 playlist id */
/* bytes 12-15 contain uint32 track id */
- proto_item_append_text(ti,
+ proto_item_append_text(ti,
"; unknown: %d, playlist id: %d, unknown: %d, track id: %d",
tvb_get_ntohl(tvb, offset),
tvb_get_ntohl(tvb, offset+4),
@@ -741,6 +741,6 @@ proto_reg_handoff_daap(void)
daap_handle = create_dissector_handle(dissect_daap, proto_daap);
http_dissector_add(TCP_PORT_DAAP, daap_handle);
-
+
png_handle = find_dissector("png");
}