Style fix.
Sponsored by: Sandvine Incorporated Requested by: jhb Reviewed by: jhb MFC after: 1 week X-MFC: 215544
This commit is contained in:
parent
beb8ef4a7d
commit
57c153804a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=215683
@ -46,7 +46,6 @@ __FBSDID("$FreeBSD$");
|
||||
|
||||
static MALLOC_DEFINE(M_MODULE, "module", "module data structures");
|
||||
|
||||
typedef TAILQ_HEAD(modulelst, module) modulelist_t;
|
||||
struct module {
|
||||
TAILQ_ENTRY(module) link; /* chain together all modules */
|
||||
TAILQ_ENTRY(module) flink; /* all modules in a file */
|
||||
@ -61,7 +60,7 @@ struct module {
|
||||
|
||||
#define MOD_EVENT(mod, type) (mod)->handler((mod), (type), (mod)->arg)
|
||||
|
||||
static modulelist_t modules;
|
||||
static TAILQ_HEAD(modulelist, module) modules;
|
||||
struct sx modules_sx;
|
||||
static int nextid = 1;
|
||||
static void module_shutdown(void *, int);
|
||||
@ -101,7 +100,7 @@ module_shutdown(void *arg1, int arg2)
|
||||
return;
|
||||
mtx_lock(&Giant);
|
||||
MOD_SLOCK;
|
||||
TAILQ_FOREACH_REVERSE(mod, &modules, modulelst, link)
|
||||
TAILQ_FOREACH_REVERSE(mod, &modules, modulelist, link)
|
||||
MOD_EVENT(mod, MOD_SHUTDOWN);
|
||||
MOD_SUNLOCK;
|
||||
mtx_unlock(&Giant);
|
||||
|
Loading…
Reference in New Issue
Block a user