aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/server.c
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-04-27 05:58:20 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2023-04-27 05:58:20 +0200
commitd2e0563af39a474b8e0e5d658f04f3b306641ae9 (patch)
tree2f57c2975f56a4ec27cb420b7796368f88a7a79c /src/server.c
parentsqlite: fix error handling (diff)
downloadcimple-d2e0563af39a474b8e0e5d658f04f3b306641ae9.tar.gz
cimple-d2e0563af39a474b8e0e5d658f04f3b306641ae9.zip
rename commands
Diffstat (limited to 'src/server.c')
-rw-r--r--src/server.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server.c b/src/server.c
index 152581b..3d57f60 100644
--- a/src/server.c
+++ b/src/server.c
@@ -209,13 +209,13 @@ static int worker_thread(struct server *server, int fd)
return ret;
}
-static int msg_worker_new_handler(struct server *server, int client_fd,
+static int msg_new_worker_handler(struct server *server, int client_fd,
UNUSED const struct msg *request)
{
return worker_thread(server, client_fd);
}
-static int msg_worker_new_parser(UNUSED const struct msg *msg)
+static int msg_new_worker_parser(UNUSED const struct msg *msg)
{
return 1;
}
@@ -290,7 +290,7 @@ struct msg_descr {
};
struct msg_descr messages[] = {
- {CMD_WORKER_NEW, msg_worker_new_parser, msg_worker_new_handler},
+ {CMD_NEW_WORKER, msg_new_worker_parser, msg_new_worker_handler},
{CMD_CI_RUN, msg_ci_run_parser, msg_ci_run_handler},
};