[vlc-devel] [PATCH 2/3] src: remove redundant search.h include
Steve Lhomme
robux4 at ycbcr.xyz
Tue Jul 16 09:26:44 CEST 2019
---
src/misc/actions.c | 3 ---
src/misc/objects.c | 4 ----
src/misc/threads.c | 3 ---
src/misc/variables.c | 3 ---
src/modules/bank.c | 3 ---
src/modules/entry.c | 3 ---
6 files changed, 19 deletions(-)
diff --git a/src/misc/actions.c b/src/misc/actions.c
index b6e76e75d9..820edd051a 100644
--- a/src/misc/actions.c
+++ b/src/misc/actions.c
@@ -32,9 +32,6 @@
#include <assert.h>
#include <stdlib.h>
#include <limits.h>
-#ifdef HAVE_SEARCH_H
-# include <search.h>
-#endif
#include <errno.h>
#include <vlc_common.h>
diff --git a/src/misc/objects.c b/src/misc/objects.c
index f87edd9827..355ed5a632 100644
--- a/src/misc/objects.c
+++ b/src/misc/objects.c
@@ -48,10 +48,6 @@
#include "variables.h"
-#ifdef HAVE_SEARCH_H
-# include <search.h>
-#endif
-
#include <limits.h>
#include <assert.h>
diff --git a/src/misc/threads.c b/src/misc/threads.c
index 54643ba4aa..ba82a5b053 100644
--- a/src/misc/threads.c
+++ b/src/misc/threads.c
@@ -53,9 +53,6 @@ void vlc_global_mutex (unsigned n, bool acquire)
}
#ifndef NDEBUG
-# ifdef HAVE_SEARCH_H
-# include <search.h>
-# endif
struct vlc_lock_mark
{
diff --git a/src/misc/variables.c b/src/misc/variables.c
index a39fd4143f..76c3731e58 100644
--- a/src/misc/variables.c
+++ b/src/misc/variables.c
@@ -27,9 +27,6 @@
# include "config.h"
#endif
-#ifdef HAVE_SEARCH_H
-# include <search.h>
-#endif
#include <assert.h>
#include <float.h>
#include <math.h>
diff --git a/src/modules/bank.c b/src/modules/bank.c
index 0b551a91bc..4f012a5dc1 100644
--- a/src/modules/bank.c
+++ b/src/modules/bank.c
@@ -36,9 +36,6 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
-#ifdef HAVE_SEARCH_H
-# include <search.h>
-#endif
#include <vlc_common.h>
#include <vlc_plugin.h>
diff --git a/src/modules/entry.c b/src/modules/entry.c
index bce94285c6..8a6f11f4ef 100644
--- a/src/modules/entry.c
+++ b/src/modules/entry.c
@@ -29,9 +29,6 @@
#include <stdarg.h>
#include <limits.h>
#include <float.h>
-#ifdef HAVE_SEARCH_H
-# include <search.h>
-#endif
#include "modules/modules.h"
#include "config/configuration.h"
--
2.17.1
More information about the vlc-devel
mailing list