summaryrefslogtreecommitdiff
path: root/sys/arch/i386
diff options
context:
space:
mode:
authorAlexander Yurchenko <grange@cvs.openbsd.org>2009-01-13 19:44:21 +0000
committerAlexander Yurchenko <grange@cvs.openbsd.org>2009-01-13 19:44:21 +0000
commitf3743c6f5c1bcd7b83a1a8319773ca0ad9bbdb8e (patch)
tree6d6d34fab509688bbb28e140aa614bb75db834d1 /sys/arch/i386
parentc6503137fa3f3a39fd04a241d13125294fec8c5d (diff)
Trivial lvalue abuse fixes, no binary changes.
ok millert@ tedu@
Diffstat (limited to 'sys/arch/i386')
-rw-r--r--sys/arch/i386/i386/mem.c4
-rw-r--r--sys/arch/i386/pci/auglx.c6
2 files changed, 5 insertions, 5 deletions
diff --git a/sys/arch/i386/i386/mem.c b/sys/arch/i386/i386/mem.c
index 6c94688c0c0..1ea8bc413b7 100644
--- a/sys/arch/i386/i386/mem.c
+++ b/sys/arch/i386/i386/mem.c
@@ -1,5 +1,5 @@
/* $NetBSD: mem.c,v 1.31 1996/05/03 19:42:19 christos Exp $ */
-/* $OpenBSD: mem.c,v 1.35 2008/11/05 06:32:47 matthieu Exp $ */
+/* $OpenBSD: mem.c,v 1.36 2009/01/13 19:44:20 grange Exp $ */
/*
* Copyright (c) 1988 University of Utah.
* Copyright (c) 1982, 1986, 1990, 1993
@@ -193,7 +193,7 @@ mmrw(dev_t dev, struct uio *uio, int flags)
default:
return (ENXIO);
}
- (char *)iov->iov_base += c;
+ iov->iov_base = (char *)iov->iov_base + c;
iov->iov_len -= c;
uio->uio_offset += c;
uio->uio_resid -= c;
diff --git a/sys/arch/i386/pci/auglx.c b/sys/arch/i386/pci/auglx.c
index c72587da196..6dbe9e0388b 100644
--- a/sys/arch/i386/pci/auglx.c
+++ b/sys/arch/i386/pci/auglx.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: auglx.c,v 1.3 2008/10/25 22:30:43 jakemsr Exp $ */
+/* $OpenBSD: auglx.c,v 1.4 2009/01/13 19:44:20 grange Exp $ */
/*
* Copyright (c) 2008 Marc Balmer <mbalmer@openbsd.org>
@@ -1144,7 +1144,7 @@ auglx_trigger_output(void *v, void *start, void *end, int blksize,
for (i = 0; i < nprd; i++) {
sc->bm0.sc_vprd[i].base = addr;
sc->bm0.sc_vprd[i].size = blksize | AUGLX_PRD_EOP;
- (char *)addr += blksize;
+ addr += blksize;
}
sc->bm0.sc_vprd[i].base = sc->bm0.sc_prd->dm_segs[0].ds_addr;
sc->bm0.sc_vprd[i].size = AUGLX_PRD_JMP;
@@ -1203,7 +1203,7 @@ auglx_trigger_input(void *v, void *start, void *end, int blksize,
for (i = 0; i < nprd; i++) {
sc->bm1.sc_vprd[i].base = addr;
sc->bm1.sc_vprd[i].size = blksize | AUGLX_PRD_EOP;
- (char *)addr += blksize;
+ addr += blksize;
}
sc->bm1.sc_vprd[i].base = sc->bm1.sc_prd->dm_segs[0].ds_addr;
sc->bm1.sc_vprd[i].size = AUGLX_PRD_JMP;