diff options
Diffstat (limited to 'cddl/contrib/opensolaris/common/ctf/ctf_util.c')
-rw-r--r-- | cddl/contrib/opensolaris/common/ctf/ctf_util.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cddl/contrib/opensolaris/common/ctf/ctf_util.c b/cddl/contrib/opensolaris/common/ctf/ctf_util.c index 740d403e8c52..d3d9a65211bb 100644 --- a/cddl/contrib/opensolaris/common/ctf/ctf_util.c +++ b/cddl/contrib/opensolaris/common/ctf/ctf_util.c @@ -96,9 +96,9 @@ ctf_list_delete(ctf_list_t *lp, void *existing) * up the appropriate string table buffer and then adding the offset. */ const char * -ctf_strraw(ctf_file_t *fp, uint_t name) +ctf_strraw(const ctf_file_t *fp, uint_t name) { - ctf_strs_t *ctsp = &fp->ctf_str[CTF_NAME_STID(name)]; + const ctf_strs_t *ctsp = &fp->ctf_str[CTF_NAME_STID(name)]; if (ctsp->cts_strs != NULL && CTF_NAME_OFFSET(name) < ctsp->cts_len) return (ctsp->cts_strs + CTF_NAME_OFFSET(name)); @@ -108,7 +108,7 @@ ctf_strraw(ctf_file_t *fp, uint_t name) } const char * -ctf_strptr(ctf_file_t *fp, uint_t name) +ctf_strptr(const ctf_file_t *fp, uint_t name) { const char *s = ctf_strraw(fp, name); return (s != NULL ? s : "(?)"); |