Reduce compiler warnings

This commit is contained in:
Daniel Molkentin 2012-12-06 11:49:14 +01:00
parent 6d9bd79ccb
commit f461903a1a

View file

@ -39,6 +39,7 @@
#define CSYNC_LOG_CATEGORY_NAME "csync.vio.main"
#ifdef _WIN32
#include <wchar.h>
#define MODULE_EXTENSION "dll"
#else
#define MODULE_EXTENSION "so"
@ -342,7 +343,7 @@ ssize_t csync_vio_write(CSYNC *ctx, csync_vio_handle_t *fhandle, const void *buf
}
int csync_vio_sendfile(CSYNC *ctx, csync_vio_handle_t *sfp, csync_vio_handle_t *dst) {
int rc;
int rc = 0;
switch(ctx->replica) {
case REMOTE_REPLICA:
@ -352,8 +353,6 @@ int csync_vio_sendfile(CSYNC *ctx, csync_vio_handle_t *sfp, csync_vio_handle_t *
/* Not implemented, go for the read/write syntax instead. */
rc = ctx->module.method->sendfile(dst->method_handle, sfp->method_handle);
break;
default:
break;
}
return rc;
@ -369,8 +368,6 @@ off_t csync_vio_lseek(CSYNC *ctx, csync_vio_handle_t *fhandle, off_t offset, int
case LOCAL_REPLICA:
ro = csync_vio_local_lseek(fhandle->method_handle, offset, whence);
break;
default:
break;
}
return ro;