diff options
author | Jeff Morriss <jeff.morriss@ulticom.com> | 2012-02-17 03:17:34 +0000 |
---|---|---|
committer | Jeff Morriss <jeff.morriss@ulticom.com> | 2012-02-17 03:17:34 +0000 |
commit | cdc504ac3fb9121856263c6f2b6e9c6816256ea8 (patch) | |
tree | 45285c25e92c393f980256eddf7176850f602ed6 /epan/dissectors/packet-zep.c | |
parent | d2ddfe8ca62134ba3a71ac3d858f782a7bbe5191 (diff) |
time_t and nstime.nsecs are both signed so don't cast them to unsigned to display them.
svn path=/trunk/; revision=41046
Diffstat (limited to 'epan/dissectors/packet-zep.c')
-rw-r--r-- | epan/dissectors/packet-zep.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-zep.c b/epan/dissectors/packet-zep.c index 05337fe3f8..0a50b6fde5 100644 --- a/epan/dissectors/packet-zep.c +++ b/epan/dissectors/packet-zep.c @@ -220,7 +220,7 @@ static void dissect_zep(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) proto_tree_add_uint(zep_tree, hf_zep_lqi, tvb, 8, 1, zep_data.lqi); } pi = proto_tree_add_time(zep_tree, hf_zep_timestamp, tvb, 9, 8, &(zep_data.ntp_time)); - proto_item_append_text(pi, " (%lu.%09lus)", (unsigned long)zep_data.ntp_time.secs, (unsigned long)zep_data.ntp_time.nsecs); + proto_item_append_text(pi, " (%ld.%09ds)", (long)zep_data.ntp_time.secs, zep_data.ntp_time.nsecs); proto_tree_add_uint(zep_tree, hf_zep_seqno, tvb, 17, 4, zep_data.seqno); } } |