... | ... |
@@ -47,7 +47,7 @@ MODULE_VERSION |
47 | 47 |
|
48 | 48 |
|
49 | 49 |
static int pike_init(void); |
50 |
-static int pike_exit(void); |
|
50 |
+void pike_exit(void); |
|
51 | 51 |
|
52 | 52 |
|
53 | 53 |
|
... | ... |
@@ -77,18 +77,16 @@ static param_export_t params[]={ |
77 | 77 |
|
78 | 78 |
|
79 | 79 |
struct module_exports exports= { |
80 |
- "pike", |
|
80 |
+ "pike", /* module name */ |
|
81 | 81 |
DEFAULT_DLFLAGS, /* dlopen flags */ |
82 |
- cmds, |
|
83 |
- params, |
|
84 |
- 0, /* exported statistics */ |
|
85 |
- 0, /* exported MI functions */ |
|
86 |
- 0, /* exported pseudo-variables */ |
|
87 |
- 0, /* extra processes */ |
|
88 |
- pike_init, /* module initialization function */ |
|
89 |
- 0, |
|
90 |
- (destroy_function) pike_exit, /* module exit function */ |
|
91 |
- 0 /* per-child init function */ |
|
82 |
+ cmds, /* cmd exports */ |
|
83 |
+ params, /* param exports */ |
|
84 |
+ 0, /* RPC method exports */ |
|
85 |
+ 0, /* exported pseudo-variables */ |
|
86 |
+ 0, /* response handling function */ |
|
87 |
+ pike_init, /* module initialization function */ |
|
88 |
+ 0, /* per-child init function */ |
|
89 |
+ pike_exit /* module exit function */ |
|
92 | 90 |
}; |
93 | 91 |
|
94 | 92 |
|
... | ... |
@@ -149,7 +147,7 @@ error1: |
149 | 147 |
|
150 | 148 |
|
151 | 149 |
|
152 |
-static int pike_exit(void) |
|
150 |
+void pike_exit(void) |
|
153 | 151 |
{ |
154 | 152 |
/* destroy semaphore */ |
155 | 153 |
if (timer_lock) { |
... | ... |
@@ -166,7 +164,7 @@ static int pike_exit(void) |
166 | 164 |
/* destroy the IP tree */ |
167 | 165 |
destroy_ip_tree(); |
168 | 166 |
|
169 |
- return 0; |
|
167 |
+ return; |
|
170 | 168 |
} |
171 | 169 |
|
172 | 170 |
/** |