Improve groups list declaration

This commit is contained in:
Mike Belopuhov 2015-04-24 16:41:02 +02:00
parent 8b1683ee0a
commit e22d747f2b
2 changed files with 4 additions and 1 deletions

2
icb.c
View File

@ -30,6 +30,8 @@
#include "icb.h"
#include "icbd.h"
struct icb_grplist groups;
extern int creategroups;
extern char srvname[NI_MAXHOST];

3
icb.h
View File

@ -112,7 +112,8 @@ struct icb_group {
struct icb_session *mod;
};
LIST_HEAD(icb_grlist, icb_group) groups;
LIST_HEAD(icb_grplist, icb_group);
extern struct icb_grplist groups;
#ifndef nitems
#define nitems(_a) (sizeof((_a)) / sizeof((_a)[0]))