summaryrefslogtreecommitdiffstats
path: root/text-utils/more.c
diff options
context:
space:
mode:
authorSami Kerola2012-12-16 11:43:55 +0100
committerKarel Zak2012-12-19 11:38:46 +0100
commitcdd2cf46c8d92a03dc0c2883d65c606d8874177f (patch)
tree6f8dccc7753a51b7ea431a0319cabaecfc98163c /text-utils/more.c
parentisosize: inform if file does not look like iso file system (diff)
downloadkernel-qcow2-util-linux-cdd2cf46c8d92a03dc0c2883d65c606d8874177f.tar.gz
kernel-qcow2-util-linux-cdd2cf46c8d92a03dc0c2883d65c606d8874177f.tar.xz
kernel-qcow2-util-linux-cdd2cf46c8d92a03dc0c2883d65c606d8874177f.zip
more: remove unnecessary variable
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'text-utils/more.c')
-rw-r--r--text-utils/more.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/text-utils/more.c b/text-utils/more.c
index 163f016c4..41caeb194 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');