aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-portmap.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2005-07-24 19:01:28 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2005-07-24 19:01:28 +0000
commit220928b8c0d339ab78fc521ed604b1bc16b1ac54 (patch)
treeca1693ebf1407ac544cb272dbfe175ff1ff44a39 /epan/dissectors/packet-portmap.c
parent42a1f83bcb20989d255b29b5c2620a16a1366ef0 (diff)
Constify to remove a bunch of warnings. Add some casts to squelch
(presumably-)harmless-but-otherwise-unremovable const-to-nonconst warnings. In the TACACS dissector, clean up the variables used in option parsing to avoid some const-to-nonconst warnings. Clean up some white space. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15043 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-portmap.c')
-rw-r--r--epan/dissectors/packet-portmap.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/epan/dissectors/packet-portmap.c b/epan/dissectors/packet-portmap.c
index a620b7ef6f..6d938e782d 100644
--- a/epan/dissectors/packet-portmap.c
+++ b/epan/dissectors/packet-portmap.c
@@ -78,7 +78,8 @@ dissect_getport_call(tvbuff_t *tvb, int offset, packet_info *pinfo _U_,
{
guint32 proto, version;
guint32 prog;
- char *prog_name, *proto_name;
+ const char *prog_name;
+ char *proto_name;
/* make sure we remember protocol type until the reply packet */
if(!pinfo->fd->flags.visited){