From f9fb882141b4a519ae958e6332fb5a8ef717d88c Mon Sep 17 00:00:00 2001 From: schurig Date: Fri, 10 Sep 2004 12:48:25 +0000 Subject: In old ANSI-C you can't have expressions before variable declarations (C++ allows this) --- (limited to 'rsync') 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) 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 * 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, */ 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. */ if (buf->next_out == NULL) { -- cgit v0.9.0.2