Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Apr 2023 19:53:58 GMT
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 9d8537e3de10 - main - ee: Remove two set but unused variables.
Message-ID:  <202304181953.33IJrwrg061757@gitrepo.freebsd.org>

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

URL: https://cgit.FreeBSD.org/src/commit/?id=9d8537e3de106fafefac4946825b304eed96c43a

commit 9d8537e3de106fafefac4946825b304eed96c43a
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2023-04-18 19:53:32 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2023-04-18 19:53:32 +0000

    ee: Remove two set but unused variables.
    
    Reviewed by:    emaste
    Differential Revision:  https://reviews.freebsd.org/D39671
---
 contrib/ee/ee.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/contrib/ee/ee.c b/contrib/ee/ee.c
index 397817fbfc0a..21523ece9c70 100644
--- a/contrib/ee/ee.c
+++ b/contrib/ee/ee.c
@@ -1951,12 +1951,10 @@ compare(char *string1, char *string2, int sensitive)
 {
 	char *strng1;
 	char *strng2;
-	int tmp;
 	int equal;
 
 	strng1 = string1;
 	strng2 = string2;
-	tmp = 0;
 	if ((strng1 == NULL) || (strng2 == NULL) || (*strng1 == '\0') || (*strng2 == '\0'))
 		return(FALSE);
 	equal = TRUE;
@@ -1976,7 +1974,6 @@ compare(char *string1, char *string2, int sensitive)
 		strng2++;
 		if ((*strng1 == '\0') || (*strng2 == '\0') || (*strng1 == ' ') || (*strng2 == ' '))
 			break;
-		tmp++;
 	}
 	return(equal);
 }
@@ -3353,7 +3350,6 @@ menu_op(struct menu_entries menu_list[])
 	int temp;
 	int list_size;
 	int top_offset;		/* offset from top where menu items start */
-	int vert_pos;		/* vertical position			  */
 	int vert_size;		/* vertical size for menu list item display */
 	int off_start = 1;	/* offset from start of menu items to start display */
 
@@ -3423,7 +3419,6 @@ menu_op(struct menu_entries menu_list[])
 	paint_menu(menu_list, max_width, max_height, list_size, top_offset, temp_win, off_start, vert_size);
 
 	counter = 1;
-	vert_pos = 0;
 	do
 	{
 		if (off_start > 2)



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