[vlc-devel] [PATCH 3/3] gnutls: replace deprecated types

Ludovic Fauvet etix at videolan.org
Thu Jun 21 03:10:17 CEST 2012


---
 modules/misc/gnutls.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/misc/gnutls.c b/modules/misc/gnutls.c
index 33c3e54..c43f285 100644
--- a/modules/misc/gnutls.c
+++ b/modules/misc/gnutls.c
@@ -458,7 +458,7 @@ static void gnutls_x509_AddFD (vlc_object_t *obj,
     block_t *block = block_File (fd);
     if (block != NULL)
     {
-        gnutls_datum data = {
+        gnutls_datum_t data = {
             .data = block->p_buffer,
             .size = block->i_buffer,
         };
@@ -481,7 +481,7 @@ static void gnutls_x509_AddFD (vlc_object_t *obj,
 }
 
 static void gnutls_x509_AddPath (vlc_object_t *obj,
-                                 gnutls_certificate_credentials cred,
+                                 gnutls_certificate_credentials_t cred,
                                  const char *path, bool priv)
 {
     msg_Dbg (obj, "loading x509 credentials in %s...", path);
-- 
1.7.10.4




More information about the vlc-devel mailing list