Address lint issues

This commit is contained in:
Hamish Coleman 2022-02-05 20:05:50 +00:00
parent 860b27d97c
commit 017f1cf60e

View File

@ -357,7 +357,7 @@ static void mgmt_packetstats (mgmt_req_t *req, strbuf_t *buf, char *argv0, char
static void mgmt_post_test (mgmt_req_t *req, strbuf_t *buf, char *argv0, char *argv) {
send_json_1str(req, buf, "row", "sending", "test");
mgmt_event_post (N2N_EVENT_TEST, -1, argv);
mgmt_event_post(N2N_EVENT_TEST, -1, argv);
}
static void mgmt_unimplemented (mgmt_req_t *req, strbuf_t *buf, char *argv0, char *argv) {
@ -422,7 +422,7 @@ void mgmt_event_post (enum n2n_event_topic topic, int data0, void *data1) {
STRBUF_INIT(buf, buf_space);
char *tag;
if (sub->type == N2N_MGMT_SUB) {
if(sub->type == N2N_MGMT_SUB) {
tag = sub->tag;
} else {
tag = debug->tag;
@ -430,10 +430,10 @@ void mgmt_event_post (enum n2n_event_topic topic, int data0, void *data1) {
size_t msg_len = mgmt_events[topic](buf, tag, data0, data1);
if (sub->type == N2N_MGMT_SUB) {
if(sub->type == N2N_MGMT_SUB) {
send_reply(sub, buf, msg_len);
}
if (debug->type == N2N_MGMT_SUB) {
if(debug->type == N2N_MGMT_SUB) {
send_reply(debug, buf, msg_len);
}
}