[vlc-commits] gnutls: replace deprecated types

Ludovic Fauvet git at videolan.org
Thu Jun 21 23:53:38 CEST 2012


vlc | branch: master | Ludovic Fauvet <etix at videolan.org> | Thu Jun 21 03:10:17 2012 +0200| [3ed66bc1fbfe281732af65457d64a23847b04cc6] | committer: Rafaël Carré

gnutls: replace deprecated types

Signed-off-by: Rafaël Carré <funman at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3ed66bc1fbfe281732af65457d64a23847b04cc6
---

 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 c9fef1f..69e5eda 100644
--- a/modules/misc/gnutls.c
+++ b/modules/misc/gnutls.c
@@ -428,7 +428,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,
         };
@@ -451,7 +451,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);



More information about the vlc-commits mailing list