mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=7166
|
@ -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…
Reference in a new issue