summaryrefslogtreecommitdiff
path: root/rsync
Unidiff
Diffstat (limited to 'rsync') (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
@@ -96,10 +96,11 @@ void rs_filebuf_free(rs_filebuf_t *fb)
96rs_result rs_infilebuf_fill(rs_job_t *job, rs_buffers_t *buf, 96rs_result rs_infilebuf_fill(rs_job_t *job, rs_buffers_t *buf,
97 void *opaque) 97 void *opaque)
98{ 98{
99 job=job;
100 int len; 99 int len;
101 rs_filebuf_t *fb = (rs_filebuf_t *) opaque; 100 rs_filebuf_t *fb = (rs_filebuf_t *) opaque;
102 FILE *f = fb->f; 101 FILE *f = fb->f;
102
103 job=job; // fix unused warning
103 104
104 /* This is only allowed if either the buf has no input buffer 105 /* This is only allowed if either the buf has no input buffer
105 * yet, or that buffer could possibly be BUF. */ 106 * yet, or that buffer could possibly be BUF. */
@@ -148,11 +149,12 @@ rs_result rs_infilebuf_fill(rs_job_t *job, rs_buffers_t *buf,
148 */ 149 */
149rs_result rs_outfilebuf_drain(rs_job_t *job, rs_buffers_t *buf, void *opaque) 150rs_result rs_outfilebuf_drain(rs_job_t *job, rs_buffers_t *buf, void *opaque)
150{ 151{
151 job=job;
152 int present; 152 int present;
153 rs_filebuf_t *fb = (rs_filebuf_t *) opaque; 153 rs_filebuf_t *fb = (rs_filebuf_t *) opaque;
154 FILE *f = fb->f; 154 FILE *f = fb->f;
155 155
156 job=job; // fix unused warning
157
156 /* This is only allowed if either the buf has no output buffer 158 /* This is only allowed if either the buf has no output buffer
157 * yet, or that buffer could possibly be BUF. */ 159 * yet, or that buffer could possibly be BUF. */
158 if (buf->next_out == NULL) { 160 if (buf->next_out == NULL) {