mirror of
https://github.com/ntop/n2n.git
synced 2024-09-19 16:41:11 +02:00
Give a magic number a better name
This commit is contained in:
parent
06b8f1a08f
commit
e3899d1b76
|
@ -315,8 +315,10 @@ static const mgmt_handler_t mgmt_handlers[] = {
|
|||
// TODO: help_events
|
||||
};
|
||||
|
||||
#define MAX_TOPICS 10
|
||||
|
||||
/* Current subscriber for each event topic */
|
||||
static mgmt_req_t *mgmt_event_subscribers[10];
|
||||
static mgmt_req_t *mgmt_event_subscribers[MAX_TOPICS];
|
||||
|
||||
/* Map topic number to function */
|
||||
static const void (*mgmt_events[])(mgmt_req_t *req, char *udp_buf) = {
|
||||
|
|
Loading…
Reference in New Issue
Block a user