]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Fix compile error on Linux (Issue #5483)
authorMichael R Sweet <michael.r.sweet@gmail.com>
Mon, 21 Jan 2019 16:54:58 +0000 (11:54 -0500)
committerMichael R Sweet <michael.r.sweet@gmail.com>
Mon, 21 Jan 2019 16:54:58 +0000 (11:54 -0500)
CHANGES.md
cups/hash.c

index adb815485bb48e18d0911f3959dee0ba54dc98ba..a49bc3d7dee3b357d5d8488941c8361214c25258 100644 (file)
@@ -9,6 +9,7 @@ Changes in CUPS v2.2.11
   advertised (Issue #5455)
 - 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)
index 50dc5fb301b5369dfddc3bfcf79c0012a03f3f45..a313725958eaf5c49b38ff00c8609f03485a43fb 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Hashing function for CUPS.
  *
- * Copyright © 2015-2018 by Apple Inc.
+ * Copyright © 2015-2019 by Apple Inc.
  *
  * These coded instructions, statements, and computer programs are the
  * property of Apple Inc. and are protected by Federal copyright
@@ -235,7 +235,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