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.
This commit is contained in:
parent
0fd510b71a
commit
ec4f225196
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user