s_stats workaround
This commit is contained in:
parent
ed78643f52
commit
0e992f7e53
|
@ -74,7 +74,7 @@ struct ServerStatistics
|
||||||
unsigned int is_tgch; /* messages blocked due to target change */
|
unsigned int is_tgch; /* messages blocked due to target change */
|
||||||
};
|
};
|
||||||
|
|
||||||
extern struct ServerStatistics *ServerStats;
|
extern struct ServerStatistics ServerStats;
|
||||||
|
|
||||||
extern void init_stats(void);
|
extern void init_stats(void);
|
||||||
extern void tstats(struct Client *client);
|
extern void tstats(struct Client *client);
|
||||||
|
|
|
@ -81,6 +81,8 @@ extern char **myargv;
|
||||||
int maxconnections; /* XXX */
|
int maxconnections; /* XXX */
|
||||||
int ssl_ok = 0;
|
int ssl_ok = 0;
|
||||||
|
|
||||||
|
struct ServerStatistics ServerStats;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* print_startup - print startup information
|
* print_startup - print startup information
|
||||||
*/
|
*/
|
||||||
|
@ -500,6 +502,7 @@ main(int argc, char *argv[])
|
||||||
memset((void *) &Count, 0, sizeof(Count));
|
memset((void *) &Count, 0, sizeof(Count));
|
||||||
memset((void *) &ServerInfo, 0, sizeof(ServerInfo));
|
memset((void *) &ServerInfo, 0, sizeof(ServerInfo));
|
||||||
memset((void *) &AdminInfo, 0, sizeof(AdminInfo));
|
memset((void *) &AdminInfo, 0, sizeof(AdminInfo));
|
||||||
|
memset(&ServerStats, 0, sizeof(struct ServerStatistics));
|
||||||
|
|
||||||
/* Initialise the channel capability usage counts... */
|
/* Initialise the channel capability usage counts... */
|
||||||
init_chcap_usage_counts();
|
init_chcap_usage_counts();
|
||||||
|
|
|
@ -41,8 +41,7 @@
|
||||||
/*
|
/*
|
||||||
* stats stuff
|
* stats stuff
|
||||||
*/
|
*/
|
||||||
static struct ServerStatistics ircst;
|
struct ServerStatistics ServerStats;
|
||||||
struct ServerStatistics *ServerStats = &ircst;
|
|
||||||
|
|
||||||
void
|
void
|
||||||
init_stats()
|
init_stats()
|
||||||
|
|
Loading…
Reference in New Issue