diff options
author | Guy Harris <guy@alum.mit.edu> | 2002-11-28 04:57:43 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2002-11-28 04:57:43 +0000 |
commit | 094345b492c3a436ccfd2231e424c82c5a615344 (patch) | |
tree | 32c46e22ffcc2cef97a1c07bb422fb8075408168 /packet-dcerpc-rs_misc.c | |
parent | f1d905c917d237285b4f8011e467d12f16d9c36f (diff) |
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-rs_misc.c')
-rw-r--r-- | packet-dcerpc-rs_misc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packet-dcerpc-rs_misc.c b/packet-dcerpc-rs_misc.c index fb0f880d2c..a8ae3e1f1f 100644 --- a/packet-dcerpc-rs_misc.c +++ b/packet-dcerpc-rs_misc.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/rs_misc.idl * - * $Id: packet-dcerpc-rs_misc.c,v 1.2 2002/11/08 19:42:40 guy Exp $ + * $Id: packet-dcerpc-rs_misc.c,v 1.3 2002/11/28 04:57:43 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -62,7 +62,7 @@ rs_misc_dissect_login_get_info_rqst (tvbuff_t *tvb, int offset, { guint32 key_size; - char *key_t = NULL; + const char *key_t = NULL; offset = dissect_ndr_uint32 (tvb, offset, pinfo, tree, drep, hf_rs_misc_login_get_info_rqst_var, NULL); @@ -72,7 +72,7 @@ rs_misc_dissect_login_get_info_rqst (tvbuff_t *tvb, int offset, if (key_size){ /* Not able to yet decipher the OTHER versions of this call just yet. */ proto_tree_add_string (tree, hf_rs_misc_login_get_info_rqst_key_t, tvb, offset, hf_rs_misc_login_get_info_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; if (check_col(pinfo->cinfo, COL_INFO)) { |