vlc | branch: master | Steve Lhomme <rob...@ycbcr.xyz> | Wed Jul 11 18:14:59 
2018 +0200| [6147fea61bb4cbb38bc8f0e269dade53401d1785] | committer: Steve Lhomme

sout:sap: explicitly cast to unsigned the sa_family before printing it

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

 src/stream_output/sap.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/stream_output/sap.c b/src/stream_output/sap.c
index 68639eba5a..fa93cce3df 100644
--- a/src/stream_output/sap.c
+++ b/src/stream_output/sap.c
@@ -260,8 +260,8 @@ sout_AnnounceRegisterSDP (vlc_object_t *obj, const char 
*sdp,
         }
 
         default:
-            msg_Err (obj, "Address family %hu not supported by SAP",
-                     addr.a.sa_family);
+            msg_Err (obj, "Address family %u not supported by SAP",
+                     (unsigned)addr.a.sa_family);
             return NULL;
     }
 

_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to