[PATCH 17/32] testsuite/smokey/dlopen: Rearrange includes

Florian Bezdeka <[email protected]>
Newsgroups dev.linux.lists.xenomai
Message-ID <20260508-wip-flo-refactor-includes-v1-17-e449f2bd4fc2@siemens.com>
Moving from "local to global" should help us to keep headers
self-contained.

Signed-off-by: Florian Bezdeka <[email protected]>
---
 testsuite/smokey/dlopen/dlopen.c          | 1 -
 testsuite/smokey/dlopen/dlopentest.c      | 4 ++--
 testsuite/smokey/dlopen/libalchemy-test.c | 3 ---
 3 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/testsuite/smokey/dlopen/dlopen.c b/testsuite/smokey/dlopen/dlopen.c
index 5259f067ef61ca78623f547974d6daf7e501e114..3262ab065e4fb30de316bde9de2b7d857f2597bf 100644
--- a/testsuite/smokey/dlopen/dlopen.c
+++ b/testsuite/smokey/dlopen/dlopen.c
@@ -21,7 +21,6 @@
  * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  */
 
-#include <string.h>
 #include <smokey/smokey.h>
 
 smokey_test_plugin(dlopen,
diff --git a/testsuite/smokey/dlopen/dlopentest.c b/testsuite/smokey/dlopen/dlopentest.c
index c124701ea710203d4bf19ca1d615dbb33d2905d1..8d5db3b5003c37de8f8e14b0d88049f474f4d714 100644
--- a/testsuite/smokey/dlopen/dlopentest.c
+++ b/testsuite/smokey/dlopen/dlopentest.c
@@ -21,12 +21,12 @@
  * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  */
 
-#include <errno.h>
 #include <dlfcn.h>
+#include <errno.h>
 #include <error.h>
+#include <limits.h>
 #include <stdio.h>
 #include <string.h>
-#include <limits.h>
 
 static void *my_dlopen(char *name)
 {
diff --git a/testsuite/smokey/dlopen/libalchemy-test.c b/testsuite/smokey/dlopen/libalchemy-test.c
index c433ee3054bf062ea934ca42862e1b1151d1c7f9..db4613b40e879a9a97340c464252095c255efd10 100644
--- a/testsuite/smokey/dlopen/libalchemy-test.c
+++ b/testsuite/smokey/dlopen/libalchemy-test.c
@@ -22,9 +22,6 @@
  */
 
 #include <alchemy/queue.h>
-#include <string.h>
-
-#include <xenomai/init.h>
 #include <xenomai/tunables.h>
 
 static int ran_init = 0;

-- 
2.54.0
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.