Commit c8b5e32b authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

No need to check for strtof() here

parent 23c561ac
......@@ -588,11 +588,7 @@ static int BandsCallback( vlc_object_t *p_this, char const *psz_cmd,
break;
/* Read dB -20/20 */
#ifdef HAVE_STRTOF
f = strtof( p, &psz_next );
#else
f = (float)strtod( p, &psz_next );
#endif
if( psz_next == p )
break; /* no conversion */
......
......@@ -215,11 +215,7 @@ static bool GetFiltersStatus( intf_thread_t *p_intf,
for( i = 0; i < 10; i++ )
{
/* Read dB -20/20 */
#ifdef HAVE_STRTOF
f_band[i] = strtof( psz_bands, &p_next );
#else
f_band[i] = (float)strtod( psz_bands, &p_next );
#endif
if( !p_next || p_next == psz_bands ) break; /* strtof() failed */
if( !*psz_bands ) break; /* end of line */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment