From: RĂ©mi Denis-Courmont Date: Tue, 14 Apr 2009 11:27:02 +0000 (+0300) Subject: No need to check for strtof() here X-Git-Tag: 1.0.0-pre2~64 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=c8b5e32b7cab70921fca129c3b9d46fcd5acdf2b;p=vlc No need to check for strtof() here --- diff --git a/modules/audio_filter/equalizer.c b/modules/audio_filter/equalizer.c index 40bbcc16b3..512677a963 100644 --- a/modules/audio_filter/equalizer.c +++ b/modules/audio_filter/equalizer.c @@ -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 */ diff --git a/modules/gui/macosx/equalizer.m b/modules/gui/macosx/equalizer.m index 38c15bfe49..4f78770d3f 100644 --- a/modules/gui/macosx/equalizer.m +++ b/modules/gui/macosx/equalizer.m @@ -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 */