Match size_t and ssize_t by using %zu and %zd instead of %d.

MFC after:	1 month
This commit is contained in:
Xin LI 2011-07-11 05:46:15 +00:00
parent a2d5d610cb
commit d1d6559b08

View File

@ -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)