summaryrefslogtreecommitdiffstats
path: root/sys/netatm
diff options
context:
space:
mode:
authorkan <kan@FreeBSD.org>2004-07-28 06:59:55 +0000
committerkan <kan@FreeBSD.org>2004-07-28 06:59:55 +0000
commit3140931e1f4468fc877cdf58192a63cbb525fc7c (patch)
treef5a1d1e036ff3b1d82ae6564771ad7253a6da5d5 /sys/netatm
parentf70e41029a11381a7a06fea43eb09cc0db652143 (diff)
downloadFreeBSD-src-3140931e1f4468fc877cdf58192a63cbb525fc7c.zip
FreeBSD-src-3140931e1f4468fc877cdf58192a63cbb525fc7c.tar.gz
Avoid casts as lvalues.
Diffstat (limited to 'sys/netatm')
-rw-r--r--sys/netatm/spans/spans_kxdr.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/netatm/spans/spans_kxdr.c b/sys/netatm/spans/spans_kxdr.c
index def97d3..e0421f4 100644
--- a/sys/netatm/spans/spans_kxdr.c
+++ b/sys/netatm/spans/spans_kxdr.c
@@ -502,7 +502,7 @@ xdrmbuf_getlong(xdrs, lp)
/*
* Advance the data stream
*/
- ((long *)xdrs->x_private)++;
+ xdrs->x_private = (long *)xdrs->x_private + 1;
return (TRUE);
}
@@ -558,7 +558,7 @@ xdrmbuf_putlong(xdrs, lp)
/*
* Advance the data stream
*/
- ((long *)xdrs->x_private)++;
+ xdrs->x_private = (long *)xdrs->x_private + 1;
return (TRUE);
}
@@ -605,7 +605,7 @@ xdrmbuf_getbytes(xdrs, addr, len)
/*
* Update data stream controls
*/
- ((char *)xdrs->x_private) += copy;
+ xdrs->x_private = (char *)xdrs->x_private + copy;
xdrs->x_handy -= copy;
addr += copy;
len -= copy;
@@ -656,7 +656,7 @@ xdrmbuf_putbytes(xdrs, addr, len)
/*
* Update data stream controls
*/
- ((char *)xdrs->x_private)++;
+ xdrs->x_private = (char *)xdrs->x_private + 1; /*XXXKAN:copy? */
xdrs->x_handy -= copy;
addr += copy;
len -= copy;
OpenPOWER on IntegriCloud