From owner-p4-projects@FreeBSD.ORG Tue Aug 15 02:36:59 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id EDC8C16A4E0; Tue, 15 Aug 2006 02:36:58 +0000 (UTC) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CC90516A4DA for ; Tue, 15 Aug 2006 02:36:58 +0000 (UTC) (envelope-from jb@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 982D543D45 for ; Tue, 15 Aug 2006 02:36:58 +0000 (GMT) (envelope-from jb@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k7F2awlt084462 for ; Tue, 15 Aug 2006 02:36:58 GMT (envelope-from jb@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k7F2awqF084455 for perforce@freebsd.org; Tue, 15 Aug 2006 02:36:58 GMT (envelope-from jb@freebsd.org) Date: Tue, 15 Aug 2006 02:36:58 GMT Message-Id: <200608150236.k7F2awqF084455@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to jb@freebsd.org using -f From: John Birrell To: Perforce Change Reviews Cc: Subject: PERFORCE change 103955 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Aug 2006 02:36:59 -0000 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 +#include #include #include #include @@ -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 */