[vlc-devel] commit: Remove useless <fcntl.h> and <sys/time.h> inclusions ( Rémi Denis-Courmont )
git version control
git at videolan.org
Mon Jan 11 19:20:07 CET 2010
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Jan 11 19:42:39 2010 +0200| [49397ad54de3c3aff5f9dcc0856c6fa19f94729d] | committer: Rémi Denis-Courmont
Remove useless <fcntl.h> and <sys/time.h> inclusions
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=49397ad54de3c3aff5f9dcc0856c6fa19f94729d
---
modules/control/netsync.c | 3 ---
modules/control/rc.c | 4 ----
modules/services_discovery/podcast.c | 3 ---
modules/services_discovery/sap.c | 3 ---
src/control/mediacontrol_audio_video.c | 3 ---
src/control/mediacontrol_core.c | 3 ---
src/control/mediacontrol_util.c | 3 ---
src/extras/libc.c | 1 -
src/input/vlmshell.c | 4 ----
src/network/io.c | 3 ---
src/network/udp.c | 4 ----
11 files changed, 0 insertions(+), 34 deletions(-)
diff --git a/modules/control/netsync.c b/modules/control/netsync.c
index b834914..5652d0e 100644
--- a/modules/control/netsync.c
+++ b/modules/control/netsync.c
@@ -37,9 +37,6 @@
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
-#ifdef HAVE_SYS_TIME_H
-# include <sys/time.h>
-#endif
#ifdef HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
diff --git a/modules/control/rc.c b/modules/control/rc.c
index e9f9005..6b5da0b 100644
--- a/modules/control/rc.c
+++ b/modules/control/rc.c
@@ -47,10 +47,6 @@
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
-
-#ifdef HAVE_SYS_TIME_H
-# include <sys/time.h>
-#endif
#include <sys/types.h>
#include <vlc_network.h>
diff --git a/modules/services_discovery/podcast.c b/modules/services_discovery/podcast.c
index 19c4a67..07afe5b 100644
--- a/modules/services_discovery/podcast.c
+++ b/modules/services_discovery/podcast.c
@@ -40,9 +40,6 @@
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
-#ifdef HAVE_SYS_TIME_H
-# include <sys/time.h>
-#endif
/************************************************************************
* Macros and definitions
diff --git a/modules/services_discovery/sap.c b/modules/services_discovery/sap.c
index 8da5f43..4cd31ec 100644
--- a/modules/services_discovery/sap.c
+++ b/modules/services_discovery/sap.c
@@ -43,9 +43,6 @@
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
-#ifdef HAVE_SYS_TIME_H
-# include <sys/time.h>
-#endif
#ifdef HAVE_POLL
# include <poll.h>
#endif
diff --git a/src/control/mediacontrol_audio_video.c b/src/control/mediacontrol_audio_video.c
index 8f6602d..cc3ac9c 100644
--- a/src/control/mediacontrol_audio_video.c
+++ b/src/control/mediacontrol_audio_video.c
@@ -44,9 +44,6 @@
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
-#ifdef HAVE_SYS_TIME_H
-# include <sys/time.h>
-#endif
#ifdef HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
diff --git a/src/control/mediacontrol_core.c b/src/control/mediacontrol_core.c
index 7090194..7d73a60 100644
--- a/src/control/mediacontrol_core.c
+++ b/src/control/mediacontrol_core.c
@@ -46,9 +46,6 @@
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
-#ifdef HAVE_SYS_TIME_H
-# include <sys/time.h>
-#endif
#ifdef HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
diff --git a/src/control/mediacontrol_util.c b/src/control/mediacontrol_util.c
index 3dcfd43..7b4ac52 100644
--- a/src/control/mediacontrol_util.c
+++ b/src/control/mediacontrol_util.c
@@ -40,9 +40,6 @@
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
-#ifdef HAVE_SYS_TIME_H
-# include <sys/time.h>
-#endif
#ifdef HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
diff --git a/src/extras/libc.c b/src/extras/libc.c
index f262b7d..5a69137 100644
--- a/src/extras/libc.c
+++ b/src/extras/libc.c
@@ -46,7 +46,6 @@
#ifdef HAVE_FORK
# include <signal.h>
-# include <sys/time.h>
# include <unistd.h>
# include <errno.h>
# include <sys/wait.h>
diff --git a/src/input/vlmshell.c b/src/input/vlmshell.c
index 58fe8aa..284a340 100644
--- a/src/input/vlmshell.c
+++ b/src/input/vlmshell.c
@@ -40,10 +40,6 @@
#ifdef ENABLE_VLM
-#ifndef WIN32
-# include <sys/time.h> /* gettimeofday() */
-#endif
-
#include <time.h> /* ctime() */
#include <vlc_input.h>
diff --git a/src/network/io.c b/src/network/io.c
index ef07124..554b234 100644
--- a/src/network/io.c
+++ b/src/network/io.c
@@ -44,9 +44,6 @@
#ifdef HAVE_FCNTL_H
# include <fcntl.h>
#endif
-#ifdef HAVE_SYS_TIME_H
-# include <sys/time.h>
-#endif
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
diff --git a/src/network/udp.c b/src/network/udp.c
index 225eb19..d00b09e 100644
--- a/src/network/udp.c
+++ b/src/network/udp.c
@@ -35,10 +35,6 @@
#include <errno.h>
-#ifdef HAVE_SYS_TIME_H
-# include <sys/time.h>
-#endif
-
#include <vlc_network.h>
#ifdef WIN32
More information about the vlc-devel
mailing list