diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libarch/amd64/amd64_iopl.c | 5 | ||||
-rw-r--r-- | lib/libarch/arm/arm_drain_writebuf.c | 4 | ||||
-rw-r--r-- | lib/libarch/arm/arm_sync_icache.c | 4 | ||||
-rw-r--r-- | lib/libarch/i386/i386_get_ioperm.c | 5 | ||||
-rw-r--r-- | lib/libarch/i386/i386_get_ldt.c | 3 | ||||
-rw-r--r-- | lib/libarch/i386/i386_iopl.c | 5 | ||||
-rw-r--r-- | lib/libarch/i386/i386_set_ioperm.c | 5 | ||||
-rw-r--r-- | lib/libarch/i386/i386_set_ldt.c | 3 | ||||
-rw-r--r-- | lib/libarch/i386/i386_vm86.c | 5 |
9 files changed, 16 insertions, 23 deletions
diff --git a/lib/libarch/amd64/amd64_iopl.c b/lib/libarch/amd64/amd64_iopl.c index 87480596bc9..9022202f227 100644 --- a/lib/libarch/amd64/amd64_iopl.c +++ b/lib/libarch/amd64/amd64_iopl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: amd64_iopl.c,v 1.3 2012/12/05 23:19:58 deraadt Exp $ */ +/* $OpenBSD: amd64_iopl.c,v 1.4 2014/11/15 02:23:28 tedu Exp $ */ /* $NetBSD: i386_iopl.c,v 1.2 1996/02/27 22:57:29 jtc Exp $ */ /*- @@ -43,6 +43,5 @@ amd64_iopl(iopl) p.iopl = iopl; - /* LINTED pointer casts may be troublesome */ - return sysarch(AMD64_IOPL, (char *)&p); + return sysarch(AMD64_IOPL, &p); } diff --git a/lib/libarch/arm/arm_drain_writebuf.c b/lib/libarch/arm/arm_drain_writebuf.c index 991fa0fa36a..ee36d75b109 100644 --- a/lib/libarch/arm/arm_drain_writebuf.c +++ b/lib/libarch/arm/arm_drain_writebuf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: arm_drain_writebuf.c,v 1.2 2012/12/05 23:19:58 deraadt Exp $ */ +/* $OpenBSD: arm_drain_writebuf.c,v 1.3 2014/11/15 02:23:28 tedu Exp $ */ /* $NetBSD: arm_drain_writebuf.c,v 1.1 2002/03/30 06:24:34 thorpej Exp $ */ /* @@ -40,5 +40,5 @@ int arm_drain_writebuf() { - return sysarch(ARM_DRAIN_WRITEBUF, (void *)0); + return sysarch(ARM_DRAIN_WRITEBUF, NULL); } diff --git a/lib/libarch/arm/arm_sync_icache.c b/lib/libarch/arm/arm_sync_icache.c index ee41c36fdd4..0d9633994bb 100644 --- a/lib/libarch/arm/arm_sync_icache.c +++ b/lib/libarch/arm/arm_sync_icache.c @@ -1,4 +1,4 @@ -/* $OpenBSD: arm_sync_icache.c,v 1.2 2012/12/05 23:19:58 deraadt Exp $ */ +/* $OpenBSD: arm_sync_icache.c,v 1.3 2014/11/15 02:23:28 tedu Exp $ */ /* $NetBSD: arm_sync_icache.c,v 1.1 2002/03/30 06:24:34 thorpej Exp $ */ /* @@ -47,5 +47,5 @@ arm_sync_icache(addr, len) p.addr = addr; p.len = len; - return sysarch(ARM_SYNC_ICACHE, (void *)&p); + return sysarch(ARM_SYNC_ICACHE, &p); } diff --git a/lib/libarch/i386/i386_get_ioperm.c b/lib/libarch/i386/i386_get_ioperm.c index 6d08a591f89..63adc582722 100644 --- a/lib/libarch/i386/i386_get_ioperm.c +++ b/lib/libarch/i386/i386_get_ioperm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: i386_get_ioperm.c,v 1.6 2012/12/05 23:19:58 deraadt Exp $ */ +/* $OpenBSD: i386_get_ioperm.c,v 1.7 2014/11/15 02:23:28 tedu Exp $ */ /* $NetBSD: i386_get_ioperm.c,v 1.2 1996/02/27 22:57:22 jtc Exp $ */ /*- @@ -43,6 +43,5 @@ i386_get_ioperm(iomap) p.iomap = iomap; - /* LINTED pointer casts may be troublesome */ - return sysarch(I386_GET_IOPERM, (char *)&p); + return sysarch(I386_GET_IOPERM, &p); } diff --git a/lib/libarch/i386/i386_get_ldt.c b/lib/libarch/i386/i386_get_ldt.c index 384a352f431..3492f3ef680 100644 --- a/lib/libarch/i386/i386_get_ldt.c +++ b/lib/libarch/i386/i386_get_ldt.c @@ -44,6 +44,5 @@ i386_get_ldt(start, desc, num) p.desc = desc; p.num = num; - /* LINTED pointer casts may be troublesome */ - return sysarch(I386_GET_LDT, (char *)&p); + return sysarch(I386_GET_LDT, &p); } diff --git a/lib/libarch/i386/i386_iopl.c b/lib/libarch/i386/i386_iopl.c index 46138985a2b..115f520ef8d 100644 --- a/lib/libarch/i386/i386_iopl.c +++ b/lib/libarch/i386/i386_iopl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: i386_iopl.c,v 1.6 2012/12/05 23:19:58 deraadt Exp $ */ +/* $OpenBSD: i386_iopl.c,v 1.7 2014/11/15 02:23:28 tedu Exp $ */ /* $NetBSD: i386_iopl.c,v 1.2 1996/02/27 22:57:29 jtc Exp $ */ /*- @@ -43,6 +43,5 @@ i386_iopl(iopl) p.iopl = iopl; - /* LINTED pointer casts may be troublesome */ - return sysarch(I386_IOPL, (char *)&p); + return sysarch(I386_IOPL, &p); } diff --git a/lib/libarch/i386/i386_set_ioperm.c b/lib/libarch/i386/i386_set_ioperm.c index 5eeee8afce9..66719813d3d 100644 --- a/lib/libarch/i386/i386_set_ioperm.c +++ b/lib/libarch/i386/i386_set_ioperm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: i386_set_ioperm.c,v 1.6 2012/12/05 23:19:58 deraadt Exp $ */ +/* $OpenBSD: i386_set_ioperm.c,v 1.7 2014/11/15 02:23:28 tedu Exp $ */ /* $NetBSD: i386_set_ioperm.c,v 1.2 1996/02/27 22:57:31 jtc Exp $ */ /*- @@ -43,6 +43,5 @@ i386_set_ioperm(iomap) p.iomap = iomap; - /* LINTED pointer casts may be troublesome */ - return sysarch(I386_SET_IOPERM, (char *)&p); + return sysarch(I386_SET_IOPERM, &p); } diff --git a/lib/libarch/i386/i386_set_ldt.c b/lib/libarch/i386/i386_set_ldt.c index cf1c1d09bb4..5cc2736df7b 100644 --- a/lib/libarch/i386/i386_set_ldt.c +++ b/lib/libarch/i386/i386_set_ldt.c @@ -44,6 +44,5 @@ i386_set_ldt(start, desc, num) p.desc = desc; p.num = num; - /* LINTED pointer casts may be troublesome */ - return sysarch(I386_SET_LDT, (char *)&p); + return sysarch(I386_SET_LDT, &p); } diff --git a/lib/libarch/i386/i386_vm86.c b/lib/libarch/i386/i386_vm86.c index 8c01613d134..ebf1276f9b9 100644 --- a/lib/libarch/i386/i386_vm86.c +++ b/lib/libarch/i386/i386_vm86.c @@ -1,4 +1,4 @@ -/* $OpenBSD: i386_vm86.c,v 1.5 2012/12/05 23:19:58 deraadt Exp $ */ +/* $OpenBSD: i386_vm86.c,v 1.6 2014/11/15 02:23:28 tedu Exp $ */ /* $NetBSD: i386_vm86.c,v 1.1 1996/02/21 00:21:56 jtk Exp $ */ /*- @@ -41,7 +41,6 @@ i386_vm86(vmcp) register struct vm86_struct *vmcp; { - /* LINTED pointer cast may be troublesome */ - return sysarch(I386_VM86, (char *)vmcp); + return sysarch(I386_VM86, vmcp); } |