From 0a84a0358d63a2de3c07b011f77455eef877c371 Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Denis-Courmont?= Date: Wed, 5 Sep 2007 06:51:34 +0000 Subject: [PATCH] size_t / int confusion --- src/osd/osd_parser.c | 5 +++-- src/stream_output/sap.c | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/osd/osd_parser.c b/src/osd/osd_parser.c index 212d093da7..c2b5a002ea 100644 --- a/src/osd/osd_parser.c +++ b/src/osd/osd_parser.c @@ -677,8 +677,9 @@ int osd_ConfigLoader( vlc_object_t *p_this, const char *psz_file, ( strncmp( ppsz_button_states[1], &state[0], strlen(ppsz_button_states[1]) ) != 0 ) && ( strncmp( ppsz_button_states[2], &state[0], strlen(ppsz_button_states[2]) ) != 0 ) ) { - msg_Err( p_this, "invalid button state %s for button %s expected %d: unselect, select or pressed)", - &state[0], &action[0], strlen(&state[0])); + msg_Err( p_this, "invalid button state %s for button %s " + "expected %u: unselect, select or pressed)", + &state[0], &action[0], (unsigned)strlen(&state[0])); goto error; } diff --git a/src/stream_output/sap.c b/src/stream_output/sap.c index 9dee242f40..196a376509 100644 --- a/src/stream_output/sap.c +++ b/src/stream_output/sap.c @@ -630,8 +630,8 @@ static char *SDPGenerate( sap_handler_t *p_sap, if (res == -1) return NULL; - msg_Dbg( p_sap, "Generated SDP (%i bytes):\n%s", strlen(psz_sdp), - psz_sdp ); + msg_Dbg( p_sap, "Generated SDP (%u bytes):\n%s", + (unsigned)strlen(psz_sdp), psz_sdp ); return psz_sdp; } -- 2.39.2