[vlc-commits] GnuTLS: fix warnings

Rémi Denis-Courmont git at videolan.org
Fri May 4 18:14:49 CEST 2012


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Fri May  4 19:14:13 2012 +0300| [334523aa2a6be973255d57e08f01676d30f04c59] | committer: Rémi Denis-Courmont

GnuTLS: fix warnings

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

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

diff --git a/modules/misc/gnutls.c b/modules/misc/gnutls.c
index f4733f9..14810a5 100644
--- a/modules/misc/gnutls.c
+++ b/modules/misc/gnutls.c
@@ -738,7 +738,7 @@ error:
 static int gnutls_ServerAddCA (vlc_tls_creds_t *server, const char *ca_path)
 {
     vlc_tls_creds_sys_t *sys = server->sys;
-    char *local_path = ToLocale (ca_path);
+    const char *local_path = ToLocale (ca_path);
 
     int val = gnutls_certificate_set_x509_trust_file (sys->x509_cred,
                                                       local_path,
@@ -769,7 +769,7 @@ static int gnutls_ServerAddCA (vlc_tls_creds_t *server, const char *ca_path)
 static int gnutls_ServerAddCRL (vlc_tls_creds_t *server, const char *crl_path)
 {
     vlc_tls_creds_sys_t *sys = server->sys;
-    char *local_path = ToLocale (crl_path);
+    const char *local_path = ToLocale (crl_path);
 
     int val = gnutls_certificate_set_x509_crl_file (sys->x509_cred,
                                                     local_path,



More information about the vlc-commits mailing list