blob: fce44ecdef7d537a275bf98408288fb02ed13630 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
--- a/include/modules.h
+++ b/include/modules.h
@@ -28,7 +28,7 @@ struct mod_passwd {
link_t link;
};
-list_t passwd_mods;
-list_t group_mods;
+extern list_t passwd_mods;
+extern list_t group_mods;
#endif
--- a/src/main.c
+++ b/src/main.c
@@ -18,6 +18,9 @@
#include "parse.h"
#include "util.h"
+list_t passwd_mods;
+list_t group_mods;
+
static void *get_dll(const char *service)
{
char *path;
--- a/src/socket_handle.c
+++ b/src/socket_handle.c
@@ -19,6 +19,9 @@
#include "modules.h"
#include "list.h"
+extern list_t passwd_mods;
+extern list_t group_mods;
+
static int return_result(int fd, int swap, uint32_t reqtype, void *key);
struct pthread_args {
|