Re: [PATCH] util: Fix virStorageBackendIQNFound() to work on FreeBSD

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 2018-07-25 at 02:49 -0700, no-reply@xxxxxxxxxxx wrote:
> Hi,
> 
> This series was run against 'syntax-check' test by patchew.org,
> which failed, please find the details below:

[...]
> src/util/viriscsi.c:152:        int i;
> maint.mk: use size_t, not int/unsigned int for loop vars i, j, k
> make: *** [cfg.mk:573: sc_prohibit_int_ijk] Error 1

My bad. Consider the diff below squashed in.

diff --git a/src/util/viriscsi.c b/src/util/viriscsi.c
index 96934df948..653b4fd932 100644
--- a/src/util/viriscsi.c
+++ b/src/util/viriscsi.c
@@ -149,7 +149,7 @@ virStorageBackendIQNFound(const char *initiatoriqn,
         char *current = line;
         char *newline;
         char *next;
-        int i;
+        size_t i;

         if (!(newline = strchr(line, '\n')))
             break;
-- 
Andrea Bolognani / Red Hat / Virtualization

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux