[vlc-devel] commit: Don't test if a directory exists twice in a row ( Rémi Denis-Courmont )
git version control
git at videolan.org
Tue May 20 18:02:23 CEST 2008
vlc | branch: master | Rémi Denis-Courmont <rem at videolan.org> | Tue May 20 18:52:22 2008 +0300| [31bf9857bf400f283e072f053d33f6e210f698b9]
Don't test if a directory exists twice in a row
Better yet try to parse it directly...
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=31bf9857bf400f283e072f053d33f6e210f698b9
---
modules/control/http/http.c | 11 -----------
1 files changed, 0 insertions(+), 11 deletions(-)
diff --git a/modules/control/http/http.c b/modules/control/http/http.c
index 1737722..92d0839 100644
--- a/modules/control/http/http.c
+++ b/modules/control/http/http.c
@@ -100,9 +100,6 @@ int ArtCallback( httpd_handler_sys_t *p_args,
#if !defined(__APPLE__) && !defined(SYS_BEOS) && !defined(WIN32)
static int DirectoryCheck( const char *psz_dir )
{
- DIR *p_dir;
-
-#ifdef HAVE_SYS_STAT_H
struct stat stat_info;
if( ( utf8_stat( psz_dir, &stat_info ) == -1 )
@@ -110,14 +107,6 @@ static int DirectoryCheck( const char *psz_dir )
{
return VLC_EGENERIC;
}
-#endif
-
- if( ( p_dir = utf8_opendir( psz_dir ) ) == NULL )
- {
- return VLC_EGENERIC;
- }
- closedir( p_dir );
-
return VLC_SUCCESS;
}
#endif
More information about the vlc-devel
mailing list