Skip to content

Commit

Permalink
libzfs_sendrecv: Use size_t for payload_len
Browse files Browse the repository at this point in the history
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
Ryan Moeller authored and behlendorf committed Feb 2, 2022

Verified

This commit was signed with the committer’s verified signature.
TLATER Tristan Maat
1 parent 3c617c7 commit 01a0039
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/libzfs/libzfs_sendrecv.c
Original file line number Diff line number Diff line change
@@ -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),

0 comments on commit 01a0039

Please sign in to comment.