summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordteske <dteske@FreeBSD.org>2015-06-23 04:03:54 +0000
committerdteske <dteske@FreeBSD.org>2015-06-23 04:03:54 +0000
commitbba9917c3b9291f295e4bd24f1fdeff517af23bb (patch)
treecd25727aa9aca17a28a71be58c3d8069cd7c10e9
parent3822c7142eb8f00c480d74f0504b34051e372a5d (diff)
downloadFreeBSD-src-bba9917c3b9291f295e4bd24f1fdeff517af23bb.zip
FreeBSD-src-bba9917c3b9291f295e4bd24f1fdeff517af23bb.tar.gz
MFC r283863:
Fix a debug statement. Only the callback function (performing the incrementing of dpv_overall_oread) knows what its purpose is (and often times it was bytes, not lines). MFC r283975 (araujo): Clean up unused variable and silence clang warnings.
-rw-r--r--lib/libdpv/dprompt.c3
-rw-r--r--lib/libdpv/dpv.c2
2 files changed, 1 insertions, 4 deletions
diff --git a/lib/libdpv/dprompt.c b/lib/libdpv/dprompt.c
index 031f550..e3d636a 100644
--- a/lib/libdpv/dprompt.c
+++ b/lib/libdpv/dprompt.c
@@ -391,7 +391,6 @@ dprompt_add_files(struct dpv_file_node *file_list,
enum dprompt_state dstate;
int estext_lsize;
int estext_rsize;
- int estext_size;
int flabel_size;
int hlen;
int lsize;
@@ -559,13 +558,11 @@ dprompt_add_files(struct dpv_file_node *file_list,
bg_code = "\\Zr\\Z1"; /* Red */
estext_lsize = fail_lsize;
estext_rsize = fail_rsize;
- estext_size = fail_size;
estext = fail;
} else { /* e.g., DPV_STATUS_DONE */
bg_code = "\\Zr\\Z2"; /* Green */
estext_lsize = done_lsize;
estext_rsize = done_rsize;
- estext_size = done_size;
estext = done;
}
switch (dstate) {
diff --git a/lib/libdpv/dpv.c b/lib/libdpv/dpv.c
index fd44360..6a03922 100644
--- a/lib/libdpv/dpv.c
+++ b/lib/libdpv/dpv.c
@@ -692,7 +692,7 @@ dpv(struct dpv_config *config, struct dpv_file_node *file_list)
if (!dpv_interrupt)
printf("\n");
} else
- warnx("%s: %lli lines read", __func__, dpv_overall_read);
+ warnx("%s: %lli overall read", __func__, dpv_overall_read);
if (dpv_interrupt || dpv_abort)
return (-1);
OpenPOWER on IntegriCloud