These are never changed in the code (they are fields copied out from the *cmd struct), so mark them as const.
Acked-by: Eric Blake <ebl...@redhat.com> --- plugins/vddk/worker.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/vddk/worker.c b/plugins/vddk/worker.c index 5982fcea01..bc015d1618 100644 --- a/plugins/vddk/worker.c +++ b/plugins/vddk/worker.c @@ -388,9 +388,9 @@ add_extent (struct nbdkit_extents *extents, static int do_extents (struct command *cmd, struct vddk_handle *h) { - uint32_t count = cmd->count; - uint64_t offset = cmd->offset; - bool req_one = cmd->req_one; + const uint32_t count = cmd->count; + const uint64_t offset = cmd->offset; + const bool req_one = cmd->req_one; struct nbdkit_extents *extents = cmd->ptr; uint64_t position, end, start_sector; -- 2.46.0 _______________________________________________ Libguestfs mailing list -- guestfs@lists.libguestfs.org To unsubscribe send an email to guestfs-le...@lists.libguestfs.org