[vlc-commits] securetransport: fix compilation warnings

Felix Paul Kühne git at videolan.org
Sun Nov 30 21:12:22 CET 2014


vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Sun Nov 30 21:08:49 2014 +0100| [23cf269808973b12ce939182534d9c1b98afed2f] | committer: Felix Paul Kühne

securetransport: fix compilation warnings

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

 modules/misc/securetransport.c |    8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/modules/misc/securetransport.c b/modules/misc/securetransport.c
index 96e322e..8b79b67 100644
--- a/modules/misc/securetransport.c
+++ b/modules/misc/securetransport.c
@@ -46,8 +46,10 @@
 static int  OpenClient  (vlc_tls_creds_t *);
 static void CloseClient (vlc_tls_creds_t *);
 
-static int  OpenServer  (vlc_tls_creds_t *crd, const char *cert, const char *key);
-static void CloseServer (vlc_tls_creds_t *);
+#if !TARGET_OS_IPHONE
+	static int  OpenServer  (vlc_tls_creds_t *crd, const char *cert, const char *key);
+	static void CloseServer (vlc_tls_creds_t *);
+#endif
 
 vlc_module_begin ()
     set_description(N_("TLS support for OS X and iOS"))
@@ -487,7 +489,7 @@ static int st_Recv (void *opaque, void *buf, size_t length)
 
     /* peer performed shutdown */
     if (ret == errSSLClosedNoNotify || ret == errSSLClosedGraceful) {
-        msg_Dbg(session, "Got close notification with code %d", ret);
+        msg_Dbg(session, "Got close notification with code %i", (int)ret);
         return 0;
     }
 



More information about the vlc-commits mailing list