From 083143ed05de4b458c673d089657eb5072953134 Mon Sep 17 00:00:00 2001 From: Andrew Zaborowski Date: Mon, 11 Nov 2019 13:34:16 +0100 Subject: [PATCH] module: Fix variable names Apparently the intention was for the dependent module's name to appear in the variable name resulting from using IWD_MODULE_DEPENDS, so the dependencies all have unique names (apparently not critical). --- src/module.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/module.h b/src/module.h index b0102cba..c0f1c6c1 100644 --- a/src/module.h +++ b/src/module.h @@ -40,7 +40,7 @@ struct iwd_module_depends { #define IWD_MODULE_DEPENDS(name, dep) \ static struct iwd_module_depends \ - __iwd_module__##name_##dep \ + __iwd_module__##name##_##dep \ __attribute__((used, section("__iwd_module_dep"), \ aligned(8))) = { \ .self = #name, \