mirror of
https://github.com/troglobit/finit.git
synced 2026-10-15 10:29:35 +00:00
Declare name for all plugins, needed for static builds.
When building a static Finit the plugins do not get a unique name automatically from the file. This led to only the first plugin being loaded, since its name was 'unknown' it was registered as such and all other plugins conflicted, since 'unknown' was already ... known and loaded. This patch gives all plugins a default name, __FILE__, making it possible to use all of them when building a static Finit. Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
a6b78d57c0
commit
f902505b5d
10 files changed
+10
-2
No files matched your search
@@ -42,6 +42,7 @@
|
||||
static void parse(void *arg, int fd, int events);
|
||||
|
||||
static plugin_t plugin = {
|
||||
.name = __FILE__,
|
||||
.io = {
|
||||
.cb = parse,
|
||||
.flags = PLUGIN_IO_READ,
|
||||
|
||||
Reference in new issue
Block a user