diff options
author | jmayer <jmayer@f5534014-38df-0310-8fa8-9805f1628bb7> | 2005-08-05 00:23:22 +0000 |
---|---|---|
committer | jmayer <jmayer@f5534014-38df-0310-8fa8-9805f1628bb7> | 2005-08-05 00:23:22 +0000 |
commit | 15c553c2351ba4062913ee915de40c498e84601d (patch) | |
tree | 3c3e24728558c5082c714381cfbb089836bcdac2 /epan/dissectors/packet-portmap.c | |
parent | 37d51b40e628f609a62e83222738cdbd9b5aaa09 (diff) |
More char -> const char warning fixes
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15218 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-portmap.c')
-rw-r--r-- | epan/dissectors/packet-portmap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-portmap.c b/epan/dissectors/packet-portmap.c index 6d938e782d..89f414a814 100644 --- a/epan/dissectors/packet-portmap.c +++ b/epan/dissectors/packet-portmap.c @@ -79,7 +79,7 @@ dissect_getport_call(tvbuff_t *tvb, int offset, packet_info *pinfo _U_, guint32 proto, version; guint32 prog; const char *prog_name; - char *proto_name; + const char *proto_name; /* make sure we remember protocol type until the reply packet */ if(!pinfo->fd->flags.visited){ @@ -117,7 +117,7 @@ dissect_getport_call(tvbuff_t *tvb, int offset, packet_info *pinfo _U_, /* protocol */ proto = tvb_get_ntohl(tvb, offset+8); - proto_name = (char *)ipprotostr(proto); + proto_name = ipprotostr(proto); proto_tree_add_uint_format(tree, hf_portmap_proto, tvb, offset+8, 4, proto, "Proto: %s (%u)", proto_name, proto); if (check_col(pinfo->cinfo, COL_INFO)) { |