From: Michael R Sweet Date: Mon, 21 Jan 2019 16:53:59 +0000 (-0500) Subject: Fix compile error on Linux (Issue #5483) X-Git-Tag: v2.3b8~155 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0057f146f6e82ac5b57ece8e425b174932a5c35a;p=thirdparty%2Fcups.git Fix compile error on Linux (Issue #5483) --- diff --git a/CHANGES.md b/CHANGES.md index 7defee74fa..f933662b24 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -9,6 +9,7 @@ Changes in CUPS v2.3b8 - Fixed a performance regression with large PPDs (rdar://47040759) - Fixed a potential memory leak when reading at the end of a file (Issue #5473) - Added a USB quirks rule for the Lexmark E120n (Issue #5478) +- Fixed a compile error on Linux (Issue #5483) - The lpadmin command, web interface, and scheduler all queried an IPP Everywhere printer differently, resulting in different PPDs for the same printer (Issue #5484) diff --git a/cups/hash.c b/cups/hash.c index 68c9d4e256..061486076c 100644 --- a/cups/hash.c +++ b/cups/hash.c @@ -1,7 +1,7 @@ /* * Hashing function for CUPS. * - * Copyright © 2015-2018 by Apple Inc. + * Copyright © 2015-2019 by Apple Inc. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. @@ -230,7 +230,7 @@ cupsHashData(const char *algorithm, /* I - Algorithm name */ gnutls_hash_fast(alg, data, datalen, hash); - return (gnutls_hash_get_len(alg)); + return ((ssize_t)gnutls_hash_get_len(alg)); } #else