aboutsummaryrefslogtreecommitdiff
path: root/src/commandRouter.c
diff options
context:
space:
mode:
authorSyndamia <kamen.d.mladenov@protonmail.com>2021-09-02 11:10:49 +0300
committerSyndamia <kamen.d.mladenov@protonmail.com>2021-09-02 11:10:49 +0300
commite27a9d5f173f7626c576dbb2cd4c2f373edc847b (patch)
tree75e551e26e29f5d76e3e1496a072a5edd49d1610 /src/commandRouter.c
parent8dc46c9a698401f43a315e49c84851ba94423d30 (diff)
downloadyou86-e27a9d5f173f7626c576dbb2cd4c2f373edc847b.tar
you86-e27a9d5f173f7626c576dbb2cd4c2f373edc847b.tar.gz
you86-e27a9d5f173f7626c576dbb2cd4c2f373edc847b.zip
(1) Updated some formatting and naming
Diffstat (limited to 'src/commandRouter.c')
-rw-r--r--src/commandRouter.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/commandRouter.c b/src/commandRouter.c
index 3d41ddd..baf04c2 100644
--- a/src/commandRouter.c
+++ b/src/commandRouter.c
@@ -7,12 +7,12 @@
extern struct CommandHandler handlers[MAX_HANDLERS];
extern int handlerCount;
-bool route(char *command) {
- command = strtok(command, " ");
+bool route(char *p_command) {
+ p_command = strtok(p_command, " ");
for (int i = 0; i < handlerCount; i++) {
- if (strcasecmp(handlers[i].p_name, command) == 0) {
- handlers[i].p_executor(command);
+ if (strcasecmp(handlers[i].p_name, p_command) == 0) {
+ handlers[i].p_executor(p_command);
return true;
}
}