( 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;
}
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;
}