summaryrefslogtreecommitdiff
path: root/src/helper/command.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/helper/command.c')
-rw-r--r--src/helper/command.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/helper/command.c b/src/helper/command.c
index 26eada62..00d4b356 100644
--- a/src/helper/command.c
+++ b/src/helper/command.c
@@ -33,7 +33,7 @@
int handle_sleep_command(struct command_context_s *cmd_ctx, char *cmd, char **args, int argc);
-int build_unique_lenghts(command_context_t *context, command_t *commands)
+int build_unique_lengths(command_context_t *context, command_t *commands)
{
command_t *c, *p;
@@ -64,7 +64,7 @@ int build_unique_lenghts(command_context_t *context, command_t *commands)
/* if the current command has children, build the unique lengths for them */
if (c->children)
- build_unique_lenghts(context, c->children);
+ build_unique_lengths(context, c->children);
}
return ERROR_OK;
@@ -122,7 +122,7 @@ command_t* register_command(command_context_t *context, command_t *parent, char
}
/* update unique lengths */
- build_unique_lenghts(context, (parent) ? parent : context->commands);
+ build_unique_lengths(context, (parent) ? parent : context->commands);
return c;
}