fish: Use size_t instead of int for iteration over an array

Signed-off-by: Susant Sahani <ssahani@redhat.com>
This commit is contained in:
Susant Sahani
2025-11-13 18:05:18 +05:30
committed by rwmjones
parent 1aff72549c
commit f057044480

View File

@@ -50,11 +50,10 @@ run_copy_in (const char *cmd, size_t argc, char *argv[])
if (remote == NULL)
return -1;
const int nr_locals = argc-1;
const size_t nr_locals = argc-1;
/* Upload each local one at a time using copy-in. */
int i;
for (i = 0; i < nr_locals; ++i) {
for (size_t i = 0; i < nr_locals; ++i) {
int r = guestfs_copy_in (g, argv[i], remote);
if (r == -1)
return -1;