diff options
author | joerg <joerg@FreeBSD.org> | 1995-03-19 13:33:05 +0000 |
---|---|---|
committer | joerg <joerg@FreeBSD.org> | 1995-03-19 13:33:05 +0000 |
commit | d2c55744e4fa541d95973ebb7ed1d2f296449085 (patch) | |
tree | e96f00c62f09bba7a94dac6aeb51b036e2ac3967 /lib/libkvm | |
parent | c6030c6511c69b69a216c893957b01bfc264d365 (diff) | |
download | FreeBSD-src-d2c55744e4fa541d95973ebb7ed1d2f296449085.zip FreeBSD-src-d2c55744e4fa541d95973ebb7ed1d2f296449085.tar.gz |
Cast the offset of one call to lseek() to off_t, as it's already done
in all other places here.
This is a hack, the interface should be changed to use off_t's
everywhere around, but this will require to update all the programs
that happen to use libkvm.
Diffstat (limited to 'lib/libkvm')
-rw-r--r-- | lib/libkvm/kvm_proc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libkvm/kvm_proc.c b/lib/libkvm/kvm_proc.c index c7a95cb..bc4952e 100644 --- a/lib/libkvm/kvm_proc.c +++ b/lib/libkvm/kvm_proc.c @@ -594,7 +594,7 @@ kvm_uread(kd, p, uva, buf, len) while (len > 0) { - if (lseek(fd, uva, 0) == -1 && errno != 0) { + if (lseek(fd, (off_t)uva, 0) == -1 && errno != 0) { _kvm_err(kd, kd->program, "invalid address (%x) in %s", uva, procfile); break; } |