diff options
author | dillon <dillon@FreeBSD.org> | 1999-01-29 22:59:43 +0000 |
---|---|---|
committer | dillon <dillon@FreeBSD.org> | 1999-01-29 22:59:43 +0000 |
commit | 072a211f3573aae83ee729df53b1c57d9f3e80cc (patch) | |
tree | 57edecef45c5b1cd329935e93f0cec96a547e3ee /sys/kern/imgact_elf.c | |
parent | e71381fcd931491f4ac05f2df28732f51b735745 (diff) | |
download | FreeBSD-src-072a211f3573aae83ee729df53b1c57d9f3e80cc.zip FreeBSD-src-072a211f3573aae83ee729df53b1c57d9f3e80cc.tar.gz |
*_execsw static structures cannot be const due to the way they interact
with EXEC_SET, DECLARE_MODULE, and module_register. Specifically,
module_register. We may eventually be able to make these const, but
not now.
Diffstat (limited to 'sys/kern/imgact_elf.c')
-rw-r--r-- | sys/kern/imgact_elf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/imgact_elf.c b/sys/kern/imgact_elf.c index a719abb..98613d8 100644 --- a/sys/kern/imgact_elf.c +++ b/sys/kern/imgact_elf.c @@ -26,7 +26,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: imgact_elf.c,v 1.45 1999/01/26 02:38:10 julian Exp $ + * $Id: imgact_elf.c,v 1.46 1999/01/27 21:49:55 dillon Exp $ */ #include "opt_rlimit.h" @@ -984,5 +984,5 @@ elf_putnote(void *dst, size_t *off, const char *name, int type, * Since `const' objects end up in the text segment, TEXT_SET is the * correct directive to use. */ -static const struct execsw elf_execsw = {exec_elf_imgact, "ELF"}; +static struct execsw elf_execsw = {exec_elf_imgact, "ELF"}; EXEC_SET(elf, elf_execsw); |