diff options
author | Guy Harris <guy@alum.mit.edu> | 2005-05-05 09:40:24 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2005-05-05 09:40:24 +0000 |
commit | 73cad260c54f954ebaca2bf59df3479343438388 (patch) | |
tree | 3a875a42b4221db7aa9ce25269bfc57cb0de1131 /epan/to_str.c | |
parent | fe5561715ba5d40be347435c39047dd9aa091c10 (diff) |
"oid_to_str()" and "oid_to_str_buf()" don't modify what the "oid"
argument points to, so make it a "const" pointer.
svn path=/trunk/; revision=14311
Diffstat (limited to 'epan/to_str.c')
-rw-r--r-- | epan/to_str.c | 4 |
1 files changed, 2 insertions, 2 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; |