qrexec-lib: fix compile warnings
This commit is contained in:
parent
be74125d40
commit
1c6f44d7fa
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user