]> git.sesse.net Git - vlc/commitdiff
No need to check for strtof() here
authorRémi Denis-Courmont <remi@remlab.net>
Tue, 14 Apr 2009 11:27:02 +0000 (14:27 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Tue, 14 Apr 2009 11:28:07 +0000 (14:28 +0300)
modules/audio_filter/equalizer.c
modules/gui/macosx/equalizer.m

index 40bbcc16b30e5115cb3b0f3acb5cd5b11b992d5d..512677a963ff83f6d82cfb28fd2b6e97d670c682 100644 (file)
@@ -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 */
 
index 38c15bfe49f06dd74eafd1ccabdcac2fe2348f4b..4f78770d3fa6e233f7bca6f43515daa9aa29101b 100644 (file)
@@ -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 */