Give a magic number a better name

This commit is contained in:
Hamish Coleman 2021-11-28 22:10:07 +11:00
parent 06b8f1a08f
commit e3899d1b76

View File

@ -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) = {