Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Jan 1999 00:26:17 -0800 (PST)
From:      Matthew Dillon <dillon@apollo.backplane.com>
To:        Julian Elischer <julian@whistle.com>
Cc:        current@FreeBSD.ORG
Subject:   Re: -Wall -Wcast-qual and SYSINIT
Message-ID:  <199901280826.AAA02016@apollo.backplane.com>
References:   <Pine.BSF.4.05.9901280014520.304-100000@s204m82.isp.whistle.com>

next in thread | previous in thread | raw e-mail | index | archive | help

:
:>From my uderstanding, SYSINIT should always point to a function with a
:CONST argument because the argument is fixed as a constant at link/compile
:time.
:
:what functions don't expect a const? and why not?
:
:or am I mising something?
:
:julian

    Most of the functions do not expect a const argument, though that 
    may simply be because they didn't bother to use const when they
    could have.

    However, I know at least the MALLOC initialization objects *can't*
    use const objects because the malloc initialization routine modifies
    the data object.

    I'm sure that a non-trivial number of the sysinits also modify their
    data objects.  So we need to handle both cases.

					Matthew Dillon 
					<dillon@backplane.com>

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199901280826.AAA02016>