diff options
author | sahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7> | 2007-03-26 11:06:26 +0000 |
---|---|---|
committer | sahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7> | 2007-03-26 11:06:26 +0000 |
commit | 840aa333724fb9ba8b2985b11471266943bf160c (patch) | |
tree | b8f2ffabbc79998f21731cceca8a4fca4031281e /epan/dissectors/packet-who.c | |
parent | 83002363fe48274e7f1626a1e083280d965a8458 (diff) |
From Sebastien Tandel
fixes for various compiler warnings
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21210 f5534014-38df-0310-8fa8-9805f1628bb7
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; |