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. --- lkm/coff/coff.c | 4 ++-- lkm/linux/linux.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'lkm') diff --git a/lkm/coff/coff.c b/lkm/coff/coff.c index 8a74757..4c8b55a 100644 --- a/lkm/coff/coff.c +++ b/lkm/coff/coff.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: coff.c,v 1.4 1995/11/13 07:18:21 bde Exp $ + * $Id: coff.c,v 1.5 1995/11/14 07:33:54 bde Exp $ */ #include @@ -38,7 +38,7 @@ extern const struct execsw coff_execsw; -MOD_EXEC(ibcs2_coff, -1, (struct execsw*)&coff_execsw); +MOD_EXEC(ibcs2_coff, -1, &coff_execsw); static int ibcs2_coff_load(struct lkm_table *lkmtp, int cmd) diff --git a/lkm/linux/linux.c b/lkm/linux/linux.c index a0f27ea..dc0d522 100644 --- a/lkm/linux/linux.c +++ b/lkm/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