diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2005-05-05 09:40:24 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2005-05-05 09:40:24 +0000 |
commit | 74d9eadbe5967b4142d8c461bb8ea9dedced8bdc (patch) | |
tree | 3a875a42b4221db7aa9ce25269bfc57cb0de1131 /epan | |
parent | ecaec4e3020b9e46f4f73534b733dbbcc9f877e3 (diff) |
"oid_to_str()" and "oid_to_str_buf()" don't modify what the "oid"
argument points to, so make it a "const" pointer.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@14311 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan')
-rw-r--r-- | epan/to_str.c | 4 | ||||
-rw-r--r-- | epan/to_str.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/epan/to_str.c b/epan/to_str.c index 969e5c07b1..76bcd4eccd 100644 --- a/epan/to_str.c +++ b/epan/to_str.c @@ -893,7 +893,7 @@ address_to_str_buf(const address *addr, gchar *buf) } } -gchar* oid_to_str(guint8 *oid, gint oid_len) { +gchar* oid_to_str(const guint8 *oid, gint oid_len) { /* static buffer */ static int cnt = 0; static gchar strbuf[8][MAX_OID_STR_LEN]; @@ -902,7 +902,7 @@ gchar* oid_to_str(guint8 *oid, gint oid_len) { return oid_to_str_buf(oid, oid_len, strbuf[cnt]); } -gchar* oid_to_str_buf(guint8 *oid, gint oid_len, gchar *buf) { +gchar* oid_to_str_buf(const guint8 *oid, gint oid_len, gchar *buf) { gint i; guint8 byte; guint32 value; diff --git a/epan/to_str.h b/epan/to_str.h index 1f030bd36d..15c9aae813 100644 --- a/epan/to_str.h +++ b/epan/to_str.h @@ -69,8 +69,8 @@ extern gchar* abs_time_secs_to_str(time_t); extern void display_signed_time(gchar *, int, gint32, gint32, time_res_t); extern gchar* rel_time_to_str(nstime_t*); extern gchar* rel_time_to_secs_str(nstime_t*); -extern gchar* oid_to_str(guint8*, gint); -extern gchar* oid_to_str_buf(guint8*, gint, gchar*); +extern gchar* oid_to_str(const guint8*, gint); +extern gchar* oid_to_str_buf(const guint8*, gint, gchar*); extern char *other_decode_bitfield_value(char *buf, guint32 val, guint32 mask, |