Browse Source

Give a magic number a better name

pull/947/head
Hamish Coleman 3 years ago
parent
commit
e3899d1b76
  1. 4
      src/edge_management.c

4
src/edge_management.c

@ -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…
Cancel
Save