diff options
author | bde <bde@FreeBSD.org> | 1996-09-03 22:52:27 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1996-09-03 22:52:27 +0000 |
commit | 325338fe3d1d68f2d9a070bf7ae92bd79f056e31 (patch) | |
tree | 1f969504300cf1571bbb0a4fd08be3d6e5655f68 /lkm/linux | |
parent | e5c4f61fd1fde1a505ea11808471207ea65ff888 (diff) | |
download | FreeBSD-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/linux')
-rw-r--r-- | lkm/linux/linux.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |