From 325338fe3d1d68f2d9a070bf7ae92bd79f056e31 Mon Sep 17 00:00:00 2001 From: bde Date: Tue, 3 Sep 1996 22:52:27 +0000 Subject: `struct linker_set execsw_set' was declared as const and pointers in it were declared as non-const. This is backwards (_lkm_exec() changes the pointers but all the target `struct execsw's are const). Fixed this and poisoned related declarations to match and removed the bogus casts that hid the bug. --- sys/modules/linux/linux.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/modules/linux/linux.c') diff --git a/sys/modules/linux/linux.c b/sys/modules/linux/linux.c index a0f27ea..dc0d522 100644 --- a/sys/modules/linux/linux.c +++ b/sys/modules/linux/linux.c @@ -25,7 +25,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: linux.c,v 1.5 1996/03/10 08:42:32 sos Exp $ + * $Id: linux.c,v 1.6 1996/03/10 22:43:37 peter Exp $ */ #include @@ -39,7 +39,7 @@ extern const struct execsw linux_execsw; -MOD_EXEC(linux, -1, (struct execsw*)&linux_execsw); +MOD_EXEC(linux, -1, &linux_execsw); extern Elf32_Interp_info linux_interp; -- cgit v1.1