* httpd.c
*****************************************************************************
* Copyright (C) 2001-2003 VideoLAN
- * $Id: httpd.c,v 1.4 2003/02/27 15:07:48 fenrir Exp $
+ * $Id: httpd.c,v 1.7 2003/03/06 11:09:56 fenrir Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
*****************************************************************************/
#include <stdlib.h>
-#include <sys/time.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <vlc/vlc.h>
#include "httpd.h"
+#ifdef HAVE_SYS_TIME_H
+# include <sys/time.h>
+#endif
+
#ifdef HAVE_UNISTD_H
# include <unistd.h>
-#elif defined( _MSC_VER ) && defined( _WIN32 ) && !defined( UNDER_CE )
-# include <io.h>
#endif
#if defined( UNDER_CE )
/* yes, increment ref count and succed */
p_httpt->host[i]->i_ref++;
vlc_mutex_unlock( &p_httpt->host_lock );
- return NULL;
+ return( p_httpt->host[i] );
}
/* need to add a new listening socket */
-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1 /* F0-FF */
};
- for( i_level = 0; *src != '\0' > 0; src++ )
+ for( i_level = 0; *src != '\0'; src++ )
{
int c;