[vlc-commits] sout:sap: explicitly cast to unsigned the sa_family before printing it

Steve Lhomme git at videolan.org
Wed Jul 11 18:15:34 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at 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;
     }
 



More information about the vlc-commits mailing list