From 2c6fcae14552ab6e7addc82516617a135f86b5ca Mon Sep 17 00:00:00 2001 From: José Bollo Date: Wed, 16 Mar 2016 16:05:28 +0100 Subject: cmake: improves error detection MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add detection of problem of cast. The problems are corrected in the patch. Change-Id: I8dc1e987531790860e390dea53ddf49d52339cb2 Signed-off-by: José Bollo --- src/wgtpkg-base64.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/wgtpkg-base64.h') diff --git a/src/wgtpkg-base64.h b/src/wgtpkg-base64.h index 90917a9..b3616b4 100644 --- a/src/wgtpkg-base64.h +++ b/src/wgtpkg-base64.h @@ -17,8 +17,8 @@ */ -extern char *base64encw(const char *buffer, int length, int width); -extern char *base64enc(const char *buffer, int length); -extern int base64dec(const char *buffer, char **output); +extern char *base64encw(const char *buffer, size_t length, unsigned width); +extern char *base64enc(const char *buffer, size_t length); +extern ssize_t base64dec(const char *buffer, char **output); extern int base64eq(const char *buf1, const char *buf2); -- cgit