[vlc-devel] commit: No need to check for strtof() here ( Rémi Denis-Courmont )

git version control git at videolan.org
Tue Apr 14 13:28:25 CEST 2009


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Apr 14 14:27:02 2009 +0300| [c8b5e32b7cab70921fca129c3b9d46fcd5acdf2b] | committer: Rémi Denis-Courmont 

No need to check for strtof() here

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c8b5e32b7cab70921fca129c3b9d46fcd5acdf2b
---

 modules/audio_filter/equalizer.c |    4 ----
 modules/gui/macosx/equalizer.m   |    4 ----
 2 files changed, 0 insertions(+), 8 deletions(-)

diff --git a/modules/audio_filter/equalizer.c b/modules/audio_filter/equalizer.c
index 40bbcc1..512677a 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 38c15bf..4f78770 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 */




More information about the vlc-devel mailing list