From ae48d1ace6cd42214409abc1d21170f1b399513a Mon Sep 17 00:00:00 2001 From: Sean McBride Date: Thu, 9 Dec 2021 17:34:49 -0500 Subject: [PATCH] fix: Spell environment correctly --- runtime/include/sandbox_functions.h | 2 +- runtime/include/scheduler.h | 4 ++-- runtime/src/sandbox.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/runtime/include/sandbox_functions.h b/runtime/include/sandbox_functions.h index 6b1900d..9ad0731 100644 --- a/runtime/include/sandbox_functions.h +++ b/runtime/include/sandbox_functions.h @@ -14,7 +14,7 @@ struct sandbox *sandbox_new(struct module *module, int socket_descriptor, const struct sockaddr *socket_address, uint64_t request_arrival_timestamp, uint64_t admissions_estimate); -int sandbox_prepare_execution_environemnt(struct sandbox *sandbox); +int sandbox_prepare_execution_environment(struct sandbox *sandbox); void sandbox_free(struct sandbox *sandbox); void sandbox_main(struct sandbox *sandbox); void sandbox_switch_to(struct sandbox *next_sandbox); diff --git a/runtime/include/scheduler.h b/runtime/include/scheduler.h index b4812d9..6d5ad0f 100644 --- a/runtime/include/scheduler.h +++ b/runtime/include/scheduler.h @@ -85,7 +85,7 @@ scheduler_edf_get_next() if (global_request_scheduler_remove_if_earlier(&global, local_deadline) == 0) { assert(global != NULL); assert(global->absolute_deadline < local_deadline); - sandbox_prepare_execution_environemnt(global); + sandbox_prepare_execution_environment(global); assert(global->state == SANDBOX_INITIALIZED); sandbox_set_as_runnable(global, SANDBOX_INITIALIZED); } @@ -106,7 +106,7 @@ scheduler_fifo_get_next() /* If the local runqueue is empty, pull from global request scheduler */ if (global_request_scheduler_remove(&global) < 0) goto done; - sandbox_prepare_execution_environemnt(global); + sandbox_prepare_execution_environment(global); sandbox_set_as_runnable(global, SANDBOX_INITIALIZED); } else if (local == current_sandbox_get()) { /* Execute Round Robin Scheduling Logic if the head is the current sandbox */ diff --git a/runtime/src/sandbox.c b/runtime/src/sandbox.c index c160a42..e6e7118 100644 --- a/runtime/src/sandbox.c +++ b/runtime/src/sandbox.c @@ -102,7 +102,7 @@ sandbox_allocate(void) * @returns 0 on success, -1 on error */ int -sandbox_prepare_execution_environemnt(struct sandbox *sandbox) +sandbox_prepare_execution_environment(struct sandbox *sandbox) { assert(sandbox != NULL);