[vlc-commits] amt: fix format warning

Thomas Guillem git at videolan.org
Wed Oct 2 11:05:23 CEST 2019


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Wed Oct  2 11:03:43 2019 +0200| [852f9a062a0caca5cd81941ee4c5500ca4affe41] | committer: Thomas Guillem

amt: fix format warning

On Windows, ntohl() is returning a u_long

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

 modules/access/amt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/access/amt.c b/modules/access/amt.c
index 5139a435eb..190a9d4674 100644
--- a/modules/access/amt.c
+++ b/modules/access/amt.c
@@ -1193,7 +1193,7 @@ static bool amt_rcv_relay_adv( stream_t *p_access )
     memcpy( &relay_adv_msg.ulRcvNonce, &pkt[NONCE_LEN], NONCE_LEN );
     if( sys->glob_ulNonce != relay_adv_msg.ulRcvNonce )
     {
-        msg_Err( p_access, "Discovery nonces differ! currNonce:%x rcvd%x", sys->glob_ulNonce, ntohl(relay_adv_msg.ulRcvNonce) );
+        msg_Err( p_access, "Discovery nonces differ! currNonce:%x rcvd%x", sys->glob_ulNonce, (uint32_t) ntohl(relay_adv_msg.ulRcvNonce) );
         return false;
     }
 



More information about the vlc-commits mailing list