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 count;
while (written < size) {
if (size - written > sizeof(buf))
if (size - written > (int)sizeof(buf))
count = sizeof buf;
else
count = size - written;

View File

@ -29,7 +29,7 @@
static struct libvchan *ctrl;
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 ret;