summaryrefslogtreecommitdiff
path: root/packet-dcerpc-rpriv.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2002-11-28 04:57:43 +0000
committerGuy Harris <guy@alum.mit.edu>2002-11-28 04:57:43 +0000
commit094345b492c3a436ccfd2231e424c82c5a615344 (patch)
tree32c46e22ffcc2cef97a1c07bb422fb8075408168 /packet-dcerpc-rpriv.c
parentf1d905c917d237285b4f8011e467d12f16d9c36f (diff)
downloadwireshark-094345b492c3a436ccfd2231e424c82c5a615344.tar.gz
Assign the results of calls to "tvb_get_ptr()" to const pointer
variables, not non-const pointer variables. svn path=/trunk/; revision=6691
Diffstat (limited to 'packet-dcerpc-rpriv.c')
-rw-r--r--packet-dcerpc-rpriv.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/packet-dcerpc-rpriv.c b/packet-dcerpc-rpriv.c
index 0013b2ecb2..3405ae3a19 100644
--- a/packet-dcerpc-rpriv.c
+++ b/packet-dcerpc-rpriv.c
@@ -5,7 +5,7 @@
* This information is based off the released idl files from opengroup.
* ftp://ftp.opengroup.org/pub/dce122/dce/src/security.tar.gz security/idl/rpriv.idl
*
- * $Id: packet-dcerpc-rpriv.c,v 1.2 2002/11/08 19:42:39 guy Exp $
+ * $Id: packet-dcerpc-rpriv.c,v 1.3 2002/11/28 04:57:43 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -74,8 +74,8 @@ rpriv_dissect_get_eptgt_rqst (tvbuff_t *tvb, int offset,
*/
guint32 authn_svc, authz_svc, key_size, key_size2, var1;
- char *key_t = NULL;
- char *key_t2 = NULL;
+ const char *key_t = NULL;
+ const char *key_t2 = NULL;
offset = dissect_ndr_uint32 (tvb, offset, pinfo, tree, drep, hf_rpriv_get_eptgt_rqst_authn_svc, &authn_svc);
offset = dissect_ndr_uint32 (tvb, offset, pinfo, tree, drep, hf_rpriv_get_eptgt_rqst_authz_svc, &authz_svc);
@@ -85,13 +85,13 @@ rpriv_dissect_get_eptgt_rqst (tvbuff_t *tvb, int offset,
/* advance to get size of cell, and princ */
proto_tree_add_string (tree, hf_rpriv_get_eptgt_rqst_key_t, tvb, offset, hf_rpriv_get_eptgt_rqst_key_size, tvb_get_ptr (tvb, offset, key_size));
- key_t = (char *)tvb_get_ptr(tvb,offset,key_size);
+ key_t = (const char *)tvb_get_ptr(tvb,offset,key_size);
offset += key_size;
offset += 8;
offset = dissect_ndr_uint32 (tvb, offset, pinfo, tree, drep, hf_rpriv_get_eptgt_rqst_key_size2, &key_size2);
proto_tree_add_string (tree, hf_rpriv_get_eptgt_rqst_key_t2, tvb, offset, hf_rpriv_get_eptgt_rqst_key_size2, tvb_get_ptr (tvb, offset, key_size2));
- key_t2 = (char *)tvb_get_ptr(tvb,offset,key_size2);
+ key_t2 = (const char *)tvb_get_ptr(tvb,offset,key_size2);
offset += key_size2;