aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2023-06-20 16:29:00 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2023-06-20 16:29:00 +0000
commite8f740fbc261b953ea4f22b80846f55c54225710 (patch)
tree7458600594949ce95b062c8b142078c84cb35d82
parent5edeed4360a7e492cbca71ae7d55120951f8fc53 (diff)
downloadsrc-e8f740fbc261b953ea4f22b80846f55c54225710.tar.gz
src-e8f740fbc261b953ea4f22b80846f55c54225710.zip
diff: Fully comment out the jackpot variable.
This fixes a set but unused warning.
-rw-r--r--usr.bin/diff/diffreg.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/diff/diffreg.c b/usr.bin/diff/diffreg.c
index 971f640fa05f..d9b08aece64a 100644
--- a/usr.bin/diff/diffreg.c
+++ b/usr.bin/diff/diffreg.c
@@ -682,14 +682,14 @@ unravel(int p)
static void
check(FILE *f1, FILE *f2, int flags)
{
- int i, j, jackpot, c, d;
+ int i, j, /* jackpot, */ c, d;
long ctold, ctnew;
rewind(f1);
rewind(f2);
j = 1;
ixold[0] = ixnew[0] = 0;
- jackpot = 0;
+ /* jackpot = 0; */
ctold = ctnew = 0;
for (i = 1; i <= len[0]; i++) {
if (J[i] == 0) {
@@ -759,7 +759,7 @@ check(FILE *f1, FILE *f2, int flags)
}
}
if (chrtran(c) != chrtran(d)) {
- jackpot++;
+ /* jackpot++; */
J[i] = 0;
if (c != '\n' && c != EOF)
ctold += skipline(f1);