[vlc-commits] No need to check HAVE_GETENV

Rémi Denis-Courmont git at videolan.org
Sun Feb 13 09:17:12 CET 2011


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Feb 13 10:16:38 2011 +0200| [94a2b9d0cbf5f4d7c4f789586942aa25033ffcb4] | committer: Rémi Denis-Courmont

No need to check HAVE_GETENV

We have had a replacement for quite a while already.

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

 modules/access/http.c     |    2 --
 modules/access/mms/mmsh.c |    2 --
 2 files changed, 0 insertions(+), 4 deletions(-)

diff --git a/modules/access/http.c b/modules/access/http.c
index a3b29ba..e995056 100644
--- a/modules/access/http.c
+++ b/modules/access/http.c
@@ -465,7 +465,6 @@ static int OpenWithCookies( vlc_object_t *p_this, const char *psz_access,
                           "in registry." );
         }
     }
-#elif defined( HAVE_GETENV )
     else
     {
         psz = getenv( "http_proxy" );
@@ -475,7 +474,6 @@ static int OpenWithCookies( vlc_object_t *p_this, const char *psz_access,
             vlc_UrlParse( &p_sys->proxy, psz, 0 );
         }
     }
-#endif
 
     if( psz ) /* No, this is NOT a use-after-free error */
     {
diff --git a/modules/access/mms/mmsh.c b/modules/access/mms/mmsh.c
index e191b2a..3094f3a 100644
--- a/modules/access/mms/mmsh.c
+++ b/modules/access/mms/mmsh.c
@@ -107,7 +107,6 @@ int MMSHOpen( access_t *p_access )
         vlc_UrlParse( &p_sys->proxy, psz_proxy, 0 );
         free( psz_proxy );
     }
-#ifdef HAVE_GETENV
     else
     {
         const char *http_proxy = getenv( "http_proxy" );
@@ -117,7 +116,6 @@ int MMSHOpen( access_t *p_access )
             vlc_UrlParse( &p_sys->proxy, http_proxy, 0 );
         }
     }
-#endif
 
     if( p_sys->b_proxy )
     {



More information about the vlc-commits mailing list