diff options
author | Guy Harris <guy@alum.mit.edu> | 2014-01-14 18:35:36 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2014-01-14 18:35:36 +0000 |
commit | f862fc40ba18f322c995566de6bc7abea9faff36 (patch) | |
tree | 028d8b49784874a3587cfd24a83a1b15e0b339d8 /epan/oids.c | |
parent | d99e0b13d49ae732107ab2f89747215b9c3ec213 (diff) | |
download | wireshark-f862fc40ba18f322c995566de6bc7abea9faff36.tar.gz |
Don't cast away constness.
svn path=/trunk/; revision=54800
Diffstat (limited to 'epan/oids.c')
-rw-r--r-- | epan/oids.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/epan/oids.c b/epan/oids.c index a1c88a4858..169319bbac 100644 --- a/epan/oids.c +++ b/epan/oids.c @@ -1195,16 +1195,16 @@ const gchar *oid_resolved(guint32 num_subids, guint32* subids) { } } -extern void oid_both(guint oid_len, guint32 *subids, char** resolved_p, char** numeric_p) { - *resolved_p = (char *)oid_resolved(oid_len,subids); - *numeric_p = (char *)oid_subid2string(subids,oid_len); +extern void oid_both(guint oid_len, guint32 *subids, const char** resolved_p, const char** numeric_p) { + *resolved_p = oid_resolved(oid_len,subids); + *numeric_p = oid_subid2string(subids,oid_len); } -extern void oid_both_from_encoded(const guint8 *oid, gint oid_len, char** resolved_p, char** numeric_p) { +extern void oid_both_from_encoded(const guint8 *oid, gint oid_len, const char** resolved_p, const char** numeric_p) { guint32* subids; guint subids_len = oid_encoded2subid(oid, oid_len, &subids); - *resolved_p = (char *)oid_resolved(subids_len,subids); - *numeric_p = (char *)oid_subid2string(subids,subids_len); + *resolved_p = oid_resolved(subids_len,subids); + *numeric_p = oid_subid2string(subids,subids_len); } void oid_both_from_string(const gchar *oid_str, const char** resolved_p, const char** numeric_p) { |