summaryrefslogtreecommitdiffstats
path: root/sys/sys/linker_set.h
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1999-05-08 12:52:26 +0000
committerpeter <peter@FreeBSD.org>1999-05-08 12:52:26 +0000
commitc845ce79190131c6408f2278bcca8c51db40c01b (patch)
tree04f915def1fa9b044f701cde48ee4cdeac626722 /sys/sys/linker_set.h
parente6c289aed06c16ef3211dd909dad73fe155748d4 (diff)
downloadFreeBSD-src-c845ce79190131c6408f2278bcca8c51db40c01b.zip
FreeBSD-src-c845ce79190131c6408f2278bcca8c51db40c01b.tar.gz
ls_items[] is most definately not a set of pointers to const objects..
sysinits, for example, are sorted by swapping those objects(!). Perhaps they should be const and the sysinit sorting should be swapping the pointers rather than the targets. This is on my revisit list, but it has the side effect of removing a lot of warnings. With -Wcast-qual, it doesn't seem easy to get rid of the constness when you *know* it's not. (With apologies to bde, this essentially reverts rev 1.21 of kernel.h from back in 1996)
Diffstat (limited to 'sys/sys/linker_set.h')
-rw-r--r--sys/sys/linker_set.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/sys/linker_set.h b/sys/sys/linker_set.h
index 9824a6b..ce60239 100644
--- a/sys/sys/linker_set.h
+++ b/sys/sys/linker_set.h
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id$
+ * $Id: linker_set.h,v 1.1 1999/01/14 05:48:46 jdp Exp $
*/
#ifndef _SYS_LINKER_SET_H_
@@ -81,8 +81,8 @@
#endif
struct linker_set {
- int ls_length;
- const void *ls_items[1]; /* really ls_length of them,
+ int ls_length;
+ void *ls_items[1]; /* really ls_length of them,
* trailing NULL */
};
OpenPOWER on IntegriCloud