Browse Source

* csocket-test : true handling of "help" command

master
Alex 'AdUser' Z 4 years ago
parent
commit
50b58fce71
  1. 4
      src/csocket-test.c

4
src/csocket-test.c

@ -12,7 +12,9 @@ cmd_handler(const f2b_cmd_t *cmd, f2b_buf_t *res) {
for (int i = 0; i < cmd->argc; i++) { for (int i = 0; i < cmd->argc; i++) {
fprintf(stdout, "[handler] arg %d : %s\n", i + 1, cmd->args[i]); fprintf(stdout, "[handler] arg %d : %s\n", i + 1, cmd->args[i]);
} }
UNUSED(res); if (cmd->type == CMD_HELP) {
f2b_buf_append(res, f2b_cmd_help(), 0);
}
return; return;
} }

Loading…
Cancel
Save