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

On Wed, 2018-07-25 at 02:49 -0700, no-reply@patchew.org 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
participants (1)
-
Andrea Bolognani