From 872c3fd1c03e448f44158129da98c531c696b3dd Mon Sep 17 00:00:00 2001
From: Matthew Fernandez <matthew.fernandez@gmail.com>
Date: Sun, 25 Sep 2022 10:21:49 -0700
Subject: [PATCH] smyrna gvpr_select: use a 'size_t' for parameter counting

Reverting 656a15f855a31acc6eeb162284b89ad3367253b9 brought back in a use of
`run_gvpr` that passes an `int`. But e78bdfba860b58bf57e8afc7e5df6f2b073d3dd1
converted `run_gvpr` to take a `size_t` instead. This commits makes the
corresponding adjustment that would have been part of
e78bdfba860b58bf57e8afc7e5df6f2b073d3dd1, squashing a -Wsign-conversion warning.
---
 cmd/smyrna/gui/frmobjectui.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/cmd/smyrna/gui/frmobjectui.c b/cmd/smyrna/gui/frmobjectui.c
index f8673285e..5968c3676 100644
--- a/cmd/smyrna/gui/frmobjectui.c
+++ b/cmd/smyrna/gui/frmobjectui.c
@@ -708,7 +708,7 @@ static void gvpr_select(char *attr, char *regex_str, int objType)
 {
 
     char *bf2;
-    int i, j, argc;
+    int i, argc;
     char **argv;
 
     agxbuf sf;
@@ -725,7 +725,7 @@ static void gvpr_select(char *attr, char *regex_str, int objType)
     if (*bf2 != '\0')
 	argc++;
     argv = N_NEW(argc + 1, char *);
-    j = 0;
+    size_t j = 0;
     argv[j++] = "smyrna";
     argv[j++] = bf2;
 
-- 
2.40.0