From 1c6f44d7fa44e21d2481cf73f2626802853f98f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Fri, 7 Feb 2014 05:24:34 +0100 Subject: [PATCH] qrexec-lib: fix compile warnings --- qrexec-lib/copy-file.c | 2 +- qrexec-lib/txrx-vchan.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/qrexec-lib/copy-file.c b/qrexec-lib/copy-file.c index 805138f..df935ff 100644 --- a/qrexec-lib/copy-file.c +++ b/qrexec-lib/copy-file.c @@ -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; diff --git a/qrexec-lib/txrx-vchan.c b/qrexec-lib/txrx-vchan.c index d5ae038..2797d27 100644 --- a/qrexec-lib/txrx-vchan.c +++ b/qrexec-lib/txrx-vchan.c @@ -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;