Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
4fb633f7
Commit
4fb633f7
authored
Apr 10, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove useless (very partially used) check for errno.h
parent
9f2a0bac
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
7 additions
and
29 deletions
+7
-29
configure.ac
configure.ac
+1
-1
modules/access/cdda.c
modules/access/cdda.c
+0
-2
modules/access/cdda/info.c
modules/access/cdda/info.c
+1
-3
modules/control/http/http.h
modules/control/http/http.h
+1
-3
modules/demux/mp4/drms.c
modules/demux/mp4/drms.c
+3
-9
src/extras/dirent.c
src/extras/dirent.c
+1
-11
No files found.
configure.ac
View file @
4fb633f7
...
@@ -829,7 +829,7 @@ AC_EGREP_HEADER(strncasecmp,strings.h,[
...
@@ -829,7 +829,7 @@ AC_EGREP_HEADER(strncasecmp,strings.h,[
AC_MSG_RESULT(no)])
AC_MSG_RESULT(no)])
dnl Check for headers
dnl Check for headers
AC_CHECK_HEADERS(time.h
errno.h
stdint.h getopt.h strings.h locale.h)
AC_CHECK_HEADERS(time.h stdint.h getopt.h strings.h locale.h)
AC_CHECK_HEADERS(sys/sockio.h fcntl.h sys/types.h sys/time.h sys/times.h sys/ioctl.h sys/stat.h xlocale.h)
AC_CHECK_HEADERS(sys/sockio.h fcntl.h sys/types.h sys/time.h sys/times.h sys/ioctl.h sys/stat.h xlocale.h)
AC_CHECK_HEADERS([arpa/inet.h netinet/in.h netinet/udplite.h sys/eventfd.h])
AC_CHECK_HEADERS([arpa/inet.h netinet/in.h netinet/udplite.h sys/eventfd.h])
AC_CHECK_HEADERS([net/if.h], [], [],
AC_CHECK_HEADERS([net/if.h], [], [],
...
...
modules/access/cdda.c
View file @
4fb633f7
...
@@ -50,9 +50,7 @@
...
@@ -50,9 +50,7 @@
#include <cddb/cddb.h>
#include <cddb/cddb.h>
#endif
#endif
#ifdef HAVE_ERRNO_H
#include <errno.h>
#include <errno.h>
#endif
/*****************************************************************************
/*****************************************************************************
* Module descriptior
* Module descriptior
...
...
modules/access/cdda/info.c
View file @
4fb633f7
...
@@ -36,9 +36,7 @@
...
@@ -36,9 +36,7 @@
#include <cdio/cd_types.h>
#include <cdio/cd_types.h>
#include "info.h"
#include "info.h"
#ifdef HAVE_ERRNO_H
#include <errno.h>
# include <errno.h>
#endif
#include <assert.h>
#include <assert.h>
static
char
*
CDDAFormatStr
(
const
access_t
*
p_access
,
cdda_data_t
*
p_cdda
,
static
char
*
CDDAFormatStr
(
const
access_t
*
p_access
,
cdda_data_t
*
p_cdda
,
...
...
modules/control/http/http.h
View file @
4fb633f7
...
@@ -48,9 +48,7 @@
...
@@ -48,9 +48,7 @@
#ifdef HAVE_SYS_STAT_H
#ifdef HAVE_SYS_STAT_H
# include <sys/stat.h>
# include <sys/stat.h>
#endif
#endif
#ifdef HAVE_ERRNO_H
#include <errno.h>
# include <errno.h>
#endif
#ifdef HAVE_FCNTL_H
#ifdef HAVE_FCNTL_H
# include <fcntl.h>
# include <fcntl.h>
#endif
#endif
...
...
modules/demux/mp4/drms.c
View file @
4fb633f7
...
@@ -41,9 +41,7 @@
...
@@ -41,9 +41,7 @@
# include <stdio.h>
# include <stdio.h>
#endif
#endif
#ifdef HAVE_ERRNO_H
#include <errno.h>
# include <errno.h>
#endif
#ifdef WIN32
#ifdef WIN32
# if !defined( UNDER_CE )
# if !defined( UNDER_CE )
...
@@ -1573,14 +1571,10 @@ static int WriteUserKey( void *_p_drms, uint32_t *p_user_key )
...
@@ -1573,14 +1571,10 @@ static int WriteUserKey( void *_p_drms, uint32_t *p_user_key )
snprintf
(
psz_path
,
PATH_MAX
-
1
,
snprintf
(
psz_path
,
PATH_MAX
-
1
,
"%s/"
DRMS_DIRNAME
,
p_drms
->
psz_homedir
);
"%s/"
DRMS_DIRNAME
,
p_drms
->
psz_homedir
);
#if defined( HAVE_ERRNO_H )
#if defined( WIN32 )
# if defined( WIN32 )
if
(
!
mkdir
(
psz_path
)
||
errno
==
EEXIST
)
if
(
!
mkdir
(
psz_path
)
||
errno
==
EEXIST
)
# else
if
(
!
mkdir
(
psz_path
,
0755
)
||
errno
==
EEXIST
)
# endif
#else
#else
if
(
!
mkdir
(
psz_path
)
)
if
(
!
mkdir
(
psz_path
,
0755
)
||
errno
==
EEXIST
)
#endif
#endif
{
{
snprintf
(
psz_path
,
PATH_MAX
-
1
,
"%s/"
DRMS_DIRNAME
"/%08X.%03d"
,
snprintf
(
psz_path
,
PATH_MAX
-
1
,
"%s/"
DRMS_DIRNAME
"/%08X.%03d"
,
...
...
src/extras/dirent.c
View file @
4fb633f7
...
@@ -20,17 +20,7 @@
...
@@ -20,17 +20,7 @@
#include <stdlib.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdio.h>
#ifdef HAVE_ERRNO_H
#include <errno.h>
# include <errno.h>
#else
static
int
errno
;
/* FIXME: anything clever to put here? */
# define EFAULT 12
# define ENOTDIR 12
# define ENOENT 12
# define ENOMEM 12
# define EINVAL 12
#endif
#include <string.h>
#include <string.h>
#ifndef UNDER_CE
#ifndef UNDER_CE
# include <io.h>
# include <io.h>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment