Make cmd_handler.command const

This commit is contained in:
Carl Smedstad 2022-12-30 08:22:46 +01:00 committed by Simon Ser
parent 9540591105
commit 6ec57271b6
2 changed files with 3 additions and 3 deletions

View file

@ -148,7 +148,7 @@ static int handler_compare(const void *_a, const void *_b) {
return strcasecmp(a->command, b->command);
}
const struct cmd_handler *find_handler(char *line,
const struct cmd_handler *find_handler(const char *line,
const struct cmd_handler *handlers, size_t handlers_size) {
if (!handlers || !handlers_size) {
return NULL;