mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-26 23:28:14 +03:00
Reduce compiler warnings
This commit is contained in:
parent
6d9bd79ccb
commit
f461903a1a
1 changed files with 2 additions and 5 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue