Match size_t and ssize_t by using %zu and %zd instead of %d.
MFC after: 1 month
This commit is contained in:
parent
a2d5d610cb
commit
d1d6559b08
@ -183,7 +183,7 @@ elf_coredump(int efd __unused, int fd, pid_t pid)
|
||||
ptrace(PT_IO, pid, (caddr_t)&iorequest, 0);
|
||||
ngot = iorequest.piod_len;
|
||||
if ((size_t)ngot < nwant)
|
||||
errx(1, "short read wanted %d, got %d",
|
||||
errx(1, "short read wanted %zu, got %zd",
|
||||
nwant, ngot);
|
||||
ngot = write(fd, buf, nwant);
|
||||
if (ngot == -1)
|
||||
|
Loading…
Reference in New Issue
Block a user