]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
Fixed mismatch in size_t size. Patch by LRN.
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Thu, 7 Apr 2011 22:00:45 +0000 (00:00 +0200)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Thu, 7 Apr 2011 22:00:45 +0000 (00:00 +0200)
lib/x509/output.c
tests/certuniqueid.c

index a3e62f24a71e8eb049e6f47a59c836cbc70b389e..a49ae9543f044175b3fe78ddb093106d91e0bac4 100644 (file)
@@ -742,7 +742,7 @@ print_unique_ids (gnutls_buffer_st * str, const gnutls_x509_crt_t cert)
 {
   int result;
   char buf[256];                /* if its longer, we won't bother to print it */
-  ssize_t buf_size = 256;
+  size_t buf_size = 256;
 
   result = gnutls_x509_crt_get_issuer_unique_id (cert, buf, &buf_size);
   if (result >= 0)
index 96a363e51b70dc889de65c78d9a802f4fc385ef3..cf41751d62a8fd299264c2241cf1d4ade31fa0bb 100644 (file)
@@ -145,7 +145,7 @@ doit (void)
   };
 
   char buf[17];
-  ssize_t buf_size;
+  size_t buf_size;
 
   ret = gnutls_global_init ();
   if (ret < 0)