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 /sys/modules/coff | |
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 'sys/modules/coff')
-rw-r--r-- | sys/modules/coff/coff.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/modules/coff/coff.c b/sys/modules/coff/coff.c index 8a74757..4c8b55a 100644 --- a/sys/modules/coff/coff.c +++ b/sys/modules/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) |