diff options
author | Ronnie Sahlberg <ronnie_sahlberg@ozemail.com.au> | 2007-03-26 11:06:26 +0000 |
---|---|---|
committer | Ronnie Sahlberg <ronnie_sahlberg@ozemail.com.au> | 2007-03-26 11:06:26 +0000 |
commit | d5d5159b6d622cfc12bc8abb269be24529a5795f (patch) | |
tree | b8f2ffabbc79998f21731cceca8a4fca4031281e /epan/dissectors/packet-who.c | |
parent | a2f4ee6daf6d7536b37bb63b7fd64fcfcbffd84c (diff) |
From Sebastien Tandel
fixes for various compiler warnings
svn path=/trunk/; revision=21210
Diffstat (limited to 'epan/dissectors/packet-who.c')
-rw-r--r-- | epan/dissectors/packet-who.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/dissectors/packet-who.c b/epan/dissectors/packet-who.c index 13c9b47f27..537aed6743 100644 --- a/epan/dissectors/packet-who.c +++ b/epan/dissectors/packet-who.c @@ -138,7 +138,7 @@ dissect_who(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) } offset += 4; - tvb_get_nstringz0(tvb, offset, sizeof(server_name), server_name); + tvb_get_nstringz0(tvb, offset, sizeof(server_name), (guint8*)server_name); if (tree) proto_tree_add_string(who_tree, hf_who_hostname, tvb, offset, 32, server_name); @@ -202,12 +202,12 @@ dissect_whoent(tvbuff_t *tvb, int offset, proto_tree *tree) line_offset, SIZE_OF_WHOENT, FALSE); whoent_tree = proto_item_add_subtree(whoent_ti, ett_whoent); - tvb_get_nstringz0(tvb, line_offset, sizeof(out_line), out_line); + tvb_get_nstringz0(tvb, line_offset, sizeof(out_line), (guint8*)out_line); proto_tree_add_string(whoent_tree, hf_who_tty, tvb, line_offset, 8, out_line); line_offset += 8; - tvb_get_nstringz0(tvb, line_offset, sizeof(out_name), out_name); + tvb_get_nstringz0(tvb, line_offset, sizeof(out_name), (guint8*)out_name); proto_tree_add_string(whoent_tree, hf_who_uid, tvb, line_offset, 8, out_name); line_offset += 8; |