Date: Tue, 15 Aug 2006 02:36:58 GMT From: John Birrell <jb@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 103955 for review Message-ID: <200608150236.k7F2awqF084455@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=103955 Change 103955 by jb@jb_freebsd2 on 2006/08/15 02:36:50 Remove 'const' from places which aren't treated as constant throughout the OpenSolaris code. Grrrr. Affected files ... .. //depot/projects/dtrace/src/sys/contrib/opensolaris/common/ctf/ctf_impl.h#3 edit Differences ... ==== //depot/projects/dtrace/src/sys/contrib/opensolaris/common/ctf/ctf_impl.h#3 (text) ==== @@ -52,6 +52,7 @@ #else /* _KERNEL */ #include <strings.h> +#include <string.h> #include <stdlib.h> #include <stdarg.h> #include <stdio.h> @@ -188,8 +189,8 @@ ctf_hash_t ctf_names; /* hash table of remaining type names */ ctf_lookup_t ctf_lookups[5]; /* pointers to hashes for name lookup */ ctf_strs_t ctf_str[2]; /* array of string table base and bounds */ - const uchar_t *ctf_base; /* base of CTF header + uncompressed buffer */ - const uchar_t *ctf_buf; /* uncompressed CTF data buffer */ + uchar_t *ctf_base; /* base of CTF header + uncompressed buffer */ + uchar_t *ctf_buf; /* uncompressed CTF data buffer */ size_t ctf_size; /* size of CTF header + uncompressed data */ uint_t *ctf_sxlate; /* translation table for symtab entries */ ulong_t ctf_nsyms; /* number of entries in symtab xlate table */ @@ -277,7 +278,7 @@ extern ssize_t ctf_get_ctt_size(const ctf_file_t *, const ctf_type_t *, ssize_t *, ssize_t *); -extern const ctf_type_t *ctf_lookup_by_id(ctf_file_t **, ctf_id_t); +extern ctf_type_t *ctf_lookup_by_id(ctf_file_t **, ctf_id_t); extern int ctf_hash_create(ctf_hash_t *, ulong_t); extern int ctf_hash_insert(ctf_hash_t *, ctf_file_t *, ushort_t, uint_t); @@ -325,8 +326,8 @@ extern void *ctf_zopen(int *); -extern const char _CTF_SECTION[]; /* name of CTF ELF section */ -extern const char _CTF_NULLSTR[]; /* empty string */ +extern char _CTF_SECTION[]; /* name of CTF ELF section */ +extern char _CTF_NULLSTR[]; /* empty string */ extern int _libctf_version; /* library client version */ extern int _libctf_debug; /* debugging messages enabled */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200608150236.k7F2awqF084455>