qrexec-lib: fix compile warnings

This commit is contained in:
Marek Marczykowski-Górecki 2014-02-07 05:24:34 +01:00
parent be74125d40
commit 1c6f44d7fa
2 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ int copy_file(int outfd, int infd, long long size, unsigned long *crc32)
int ret; int ret;
int count; int count;
while (written < size) { while (written < size) {
if (size - written > sizeof(buf)) if (size - written > (int)sizeof(buf))
count = sizeof buf; count = sizeof buf;
else else
count = size - written; count = size - written;

View File

@ -29,7 +29,7 @@
static struct libvchan *ctrl; static struct libvchan *ctrl;
static int is_server; static int is_server;
int write_all_vchan_ext(void *buf, int size) int write_all_vchan_ext(const void *buf, int size)
{ {
int written = 0; int written = 0;
int ret; int ret;