[vlc-devel] [PATCH 3/3] modules: remove redundant search.h includes

Steve Lhomme robux4 at ycbcr.xyz
Tue Jul 16 09:26:45 CEST 2019


---
 modules/access/dtv/access.c           | 3 ---
 modules/services_discovery/pulse.c    | 1 -
 modules/services_discovery/udev.c     | 1 -
 modules/services_discovery/xcb_apps.c | 5 +----
 4 files changed, 1 insertion(+), 9 deletions(-)

diff --git a/modules/access/dtv/access.c b/modules/access/dtv/access.c
index 55a320ceb9..20229f158b 100644
--- a/modules/access/dtv/access.c
+++ b/modules/access/dtv/access.c
@@ -28,9 +28,6 @@
 #include <vlc_access.h>
 #include <vlc_plugin.h>
 #include <vlc_dialog.h>
-#ifdef HAVE_SEARCH_H
-#include <search.h>
-#endif
 
 #include "dtv.h"
 
diff --git a/modules/services_discovery/pulse.c b/modules/services_discovery/pulse.c
index 03ad22561d..b6a9259716 100644
--- a/modules/services_discovery/pulse.c
+++ b/modules/services_discovery/pulse.c
@@ -24,7 +24,6 @@
 # include <config.h>
 #endif
 
-#include <search.h>
 #include <assert.h>
 
 #include <vlc_common.h>
diff --git a/modules/services_discovery/udev.c b/modules/services_discovery/udev.c
index 752b5d2cbc..cd0621ec2a 100644
--- a/modules/services_discovery/udev.c
+++ b/modules/services_discovery/udev.c
@@ -25,7 +25,6 @@
 #endif
 
 #include <errno.h>
-#include <search.h>
 #include <poll.h>
 #include <sys/stat.h>
 #include <fcntl.h>
diff --git a/modules/services_discovery/xcb_apps.c b/modules/services_discovery/xcb_apps.c
index 6c44797e2a..5fca6f82bc 100644
--- a/modules/services_discovery/xcb_apps.c
+++ b/modules/services_discovery/xcb_apps.c
@@ -32,9 +32,6 @@ typedef xcb_atom_t Atom;
 #include <vlc_dialog.h>
 #include <vlc_charset.h>
 #include <vlc_plugin.h>
-#ifdef HAVE_SEARCH_H
-# include <search.h>
-#endif
 #include <poll.h>
 
 static int  Open (vlc_object_t *);
@@ -306,7 +303,7 @@ static int cmpapp (const void *a, const void *b)
     if (wa < wb)
         return -1;
     return 0;
-} 
+}
 
 static void UpdateApps (services_discovery_t *sd)
 {
-- 
2.17.1



More information about the vlc-devel mailing list