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:
Joerg Wunsch 1995-03-19 13:33:05 +00:00
parent 0fd510b71a
commit ec4f225196
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=7166

View file

@ -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;
}