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 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;
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user