*
*/
static size_t command_data(command_result_t *result, UNUSED command_ctx_t *cc,
- char *data, size_t data_used, char *in, UNUSED size_t inlen)
+ char *data, size_t data_used, char *in, size_t inlen)
{
- if (strcmp(in, data) != 0) RETURN_MISMATCH(in, strlen(in), data, data_used);
+ if (strcmp(in, data) != 0) RETURN_MISMATCH(in, inlen, data, data_used);
/*
* We didn't actually write anything, but this
goto finish;
}
- if (command->func == command_comment) continue; /* Skip comments */
+ if (command->func == command_comment) continue; /* Skip comments */
p += match_len; /* Jump to after the command */
fr_skip_whitespace(p); /* Skip any whitespace */