libzfs_sendrecv: Use size_t for payload_len

We won't be passing a negative value here, so make it clear.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ryan Moeller <freqlabs@FreeBSD.org>
Closes #12967
This commit is contained in:
Ryan Moeller 2021-07-27 13:45:28 +00:00 committed by Brian Behlendorf
parent 3c617c7921
commit 01a0039ac9
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ typedef struct progress_arg {
} progress_arg_t;
static int
dump_record(dmu_replay_record_t *drr, void *payload, int payload_len,
dump_record(dmu_replay_record_t *drr, void *payload, size_t payload_len,
zio_cksum_t *zc, int outfd)
{
ASSERT3U(offsetof(dmu_replay_record_t, drr_u.drr_checksum.drr_checksum),