Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Nov 2021 10:12:36 GMT
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 6ea39dd6c73b - main - tzsetup: remove dedundant declaration
Message-ID:  <202111241012.1AOACaeg022109@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by bapt:

URL: https://cgit.FreeBSD.org/src/commit/?id=6ea39dd6c73b9667bfa7540d3b26295213105871

commit 6ea39dd6c73b9667bfa7540d3b26295213105871
Author:     Baptiste Daroussin <bapt@FreeBSD.org>
AuthorDate: 2021-11-24 10:12:05 +0000
Commit:     Baptiste Daroussin <bapt@FreeBSD.org>
CommitDate: 2021-11-24 10:12:05 +0000

    tzsetup: remove dedundant declaration
---
 usr.sbin/tzsetup/tzsetup.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/usr.sbin/tzsetup/tzsetup.c b/usr.sbin/tzsetup/tzsetup.c
index 93871e27fb7b..4fc0fa88d438 100644
--- a/usr.sbin/tzsetup/tzsetup.c
+++ b/usr.sbin/tzsetup/tzsetup.c
@@ -181,7 +181,7 @@ again:
 	conf.title = title;
 	result = bsddialog_menu(conf, cprompt, height, width,
 	    menu_height, item_no, listitems, NULL);
-	for (int i = 0; i < item_no; i++)
+	for (i = 0; i < item_no; i++)
 		if (listitems[i].on)
 			choice = i;
 	switch (result) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202111241012.1AOACaeg022109>