]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Fix compile error on Linux.
authormsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>
Thu, 19 Nov 2015 15:27:44 +0000 (15:27 +0000)
committermsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>
Thu, 19 Nov 2015 15:27:44 +0000 (15:27 +0000)
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@12993 a1ca3aef-8c08-0410-bb20-df032aa958be

cups/hash.c

index 1d7b0dbad2c0203227f21b55095545437a5e4ecc..e20590f26ddc6c37a42846b959e7b52e655f1b0a 100644 (file)
@@ -21,6 +21,8 @@
 #include "cups-private.h"
 #ifdef __APPLE__
 #  include <CommonCrypto/CommonDigest.h>
+#elif defined(HAVE_GNUTLS)
+#  include <gnutls/crypto.h>
 #endif /* __APPLE__ */
 
 
@@ -206,7 +208,7 @@ cupsHashData(const char    *algorithm,      /* I - Algorithm name */
       gnutls_hash_fast(alg, data, datalen, temp);
       memcpy(hash, temp, tempsize);
 
-      return (tempsize);
+      return ((ssize_t)tempsize);
     }
 
     if (hashsize < gnutls_hash_get_len(alg))