diff options
author | stefanf <stefanf@FreeBSD.org> | 2004-06-08 13:08:19 +0000 |
---|---|---|
committer | stefanf <stefanf@FreeBSD.org> | 2004-06-08 13:08:19 +0000 |
commit | d7af95e86854bb648bd434fd649ebb4dafdc0d5c (patch) | |
tree | e1bd2b8e7503b487a4e9833e6073d750f2e8a0da /lib/libkvm | |
parent | 3a40eb39cf8f6c4f2f7dcec9d4c3c600b7d6227c (diff) | |
download | FreeBSD-src-d7af95e86854bb648bd434fd649ebb4dafdc0d5c.zip FreeBSD-src-d7af95e86854bb648bd434fd649ebb4dafdc0d5c.tar.gz |
Avoid assignments to cast expressions.
Reviewed by: md5
Approved by: das (mentor)
Diffstat (limited to 'lib/libkvm')
-rw-r--r-- | lib/libkvm/kvm.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libkvm/kvm.c b/lib/libkvm/kvm.c index 8f9c5b3..44a9e8c 100644 --- a/lib/libkvm/kvm.c +++ b/lib/libkvm/kvm.c @@ -347,7 +347,7 @@ kvm_read(kd, kva, buf, len) size_t len; { int cc; - void *cp; + char *cp; if (ISALIVE(kd)) { /* @@ -394,11 +394,11 @@ kvm_read(kd, kva, buf, len) */ if (cc == 0) break; - (char *)cp += cc; + cp += cc; kva += cc; len -= cc; } - return ((char *)cp - (char *)buf); + return (cp - (char *)buf); } /* NOTREACHED */ } |