summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--rsync/buf.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/rsync/buf.c b/rsync/buf.c
index c978fff..fdd67ee 100644
--- a/rsync/buf.c
+++ b/rsync/buf.c
@@ -97,8 +97,9 @@ rs_result rs_infilebuf_fill(rs_job_t *job, rs_buffers_t *buf,
void *opaque)
{
- job=job;
int len;
rs_filebuf_t *fb = (rs_filebuf_t *) opaque;
FILE *f = fb->f;
+
+ job=job; // fix unused warning
/* This is only allowed if either the buf has no input buffer
@@ -149,9 +150,10 @@ rs_result rs_infilebuf_fill(rs_job_t *job, rs_buffers_t *buf,
rs_result rs_outfilebuf_drain(rs_job_t *job, rs_buffers_t *buf, void *opaque)
{
- job=job;
int present;
rs_filebuf_t *fb = (rs_filebuf_t *) opaque;
FILE *f = fb->f;
+ job=job; // fix unused warning
+
/* This is only allowed if either the buf has no output buffer
* yet, or that buffer could possibly be BUF. */