Browse Source

* minor fixes

master
Alex 'AdUser' Z 4 years ago
parent
commit
1c3dbee3d2
  1. 2
      src/csocket-test.c
  2. 2
      src/daemon.c

2
src/csocket-test.c

@ -15,6 +15,8 @@ cmd_handler(const f2b_cmd_t *cmd, f2b_buf_t *res) {
}
if (cmd->type == CMD_HELP) {
f2b_buf_append(res, f2b_cmd_help(), 0);
} else {
f2b_buf_append(res, "+ok\n", 0);
}
return;
}

2
src/daemon.c

@ -173,7 +173,7 @@ f2b_csocket_cmd_process(const f2b_cmd_t *cmd, f2b_buf_t *res) {
}
if (res->used == 0)
f2b_buf_append(res, "+ok\n", 3); /* default reply if not set above */
f2b_buf_append(res, "+ok\n", 0); /* default reply if not set above */
return;
}

Loading…
Cancel
Save