aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-portmap.c
diff options
context:
space:
mode:
authorJörg Mayer <jmayer@loplof.de>2005-08-05 00:23:22 +0000
committerJörg Mayer <jmayer@loplof.de>2005-08-05 00:23:22 +0000
commit69dcb66cd9d74b27f85a1dceca2735fd68732c1b (patch)
tree3c3e24728558c5082c714381cfbb089836bcdac2 /epan/dissectors/packet-portmap.c
parent63728d5770c3eae2cbc2130454eca1188c8c12e5 (diff)
More char -> const char warning fixes
svn path=/trunk/; revision=15218
Diffstat (limited to 'epan/dissectors/packet-portmap.c')
-rw-r--r--epan/dissectors/packet-portmap.c4
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)) {