summaryrefslogtreecommitdiffstats
path: root/lkm
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1996-09-03 22:52:27 +0000
committerbde <bde@FreeBSD.org>1996-09-03 22:52:27 +0000
commit325338fe3d1d68f2d9a070bf7ae92bd79f056e31 (patch)
tree1f969504300cf1571bbb0a4fd08be3d6e5655f68 /lkm
parente5c4f61fd1fde1a505ea11808471207ea65ff888 (diff)
downloadFreeBSD-src-325338fe3d1d68f2d9a070bf7ae92bd79f056e31.zip
FreeBSD-src-325338fe3d1d68f2d9a070bf7ae92bd79f056e31.tar.gz
`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.
Diffstat (limited to 'lkm')
-rw-r--r--lkm/coff/coff.c4
-rw-r--r--lkm/linux/linux.c4
2 files changed, 4 insertions, 4 deletions
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 <sys/param.h>
@@ -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 <sys/param.h>
@@ -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;
OpenPOWER on IntegriCloud