[PATCH 07/14] more: remove unnecessary variable

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

 



Signed-off-by: Sami Kerola <kerolasa@xxxxxx>
---
 text-utils/more.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/text-utils/more.c b/text-utils/more.c
index 163f016..41caeb1 100644
--- a/text-utils/more.c
+++ b/text-utils/more.c
@@ -1578,7 +1578,7 @@ void search(char buf[], FILE *file, register int n)
 	register long line2 = startline;
 	register long line3 = startline;
 	register int lncount;
-	int saveln, rv, rc;
+	int saveln, rc;
 	regex_t re;
 
 	context.line = saveln = Currline;
@@ -1595,7 +1595,7 @@ void search(char buf[], FILE *file, register int n)
 		line1 = Ftell(file);
 		rdline(file);
 		lncount++;
-		if ((rv = regexec(&re, Line, 0, NULL, 0)) == 0) {
+		if (regexec(&re, Line, 0, NULL, 0) == 0) {
 			if (--n == 0) {
 				if (lncount > 3 || (lncount > 1 && no_intty)) {
 					putchar('\n');
-- 
1.8.0.2

--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux