[vlc-commits] aribcam: use %zu formatter for size_t
Alexandre Janniaux
git at videolan.org
Sat Apr 11 11:04:43 CEST 2020
vlc | branch: master | Alexandre Janniaux <ajanni at videolabs.io> | Thu Apr 9 14:56:57 2020 +0200| [e01b506c4fe4d35b9fbbcdea570bc8305c59f50d] | committer: Alexandre Janniaux
aribcam: use %zu formatter for size_t
Fix warnings when size_t is not the same size as a long unsigned int.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e01b506c4fe4d35b9fbbcdea570bc8305c59f50d
---
modules/stream_filter/aribcam.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/stream_filter/aribcam.c b/modules/stream_filter/aribcam.c
index 4af82d364a..f1a3c61dc2 100644
--- a/modules/stream_filter/aribcam.c
+++ b/modules/stream_filter/aribcam.c
@@ -197,7 +197,7 @@ static ssize_t Read( stream_t *p_stream, void *p_buf, size_t i_toread )
else
{
if ( i_srcread < 0 )
- msg_Err( p_stream, "Can't read %lu bytes from source stream: %d", i_toread, i_srcread );
+ msg_Err( p_stream, "Can't read %zu bytes from source stream: %d", i_toread, i_srcread );
return 0;
}
More information about the vlc-commits
mailing list