From f45b450360e6e3ee4bd117bf89dd7a1cf0fb8b54 Mon Sep 17 00:00:00 2001 From: Sean McBride Date: Fri, 3 Jul 2020 19:54:48 -0400 Subject: [PATCH] chore: DRY up current_sandbox funcs --- runtime/src/current_sandbox.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/runtime/src/current_sandbox.c b/runtime/src/current_sandbox.c index e762ede..2262010 100644 --- a/runtime/src/current_sandbox.c +++ b/runtime/src/current_sandbox.c @@ -52,8 +52,7 @@ current_sandbox_set(struct sandbox *sandbox) int current_sandbox_initialize_io_handle(void) { - struct sandbox *sandbox = current_sandbox_get(); - return sandbox_initialize_io_handle(sandbox); + return sandbox_initialize_io_handle(current_sandbox_get()); } int sandbox_parse_http_request(struct sandbox *sandbox, size_t l); @@ -68,8 +67,7 @@ int sandbox_parse_http_request(struct sandbox *sandbox, size_t l); int current_sandbox_set_file_descriptor(int io_handle_index, int file_descriptor) { - struct sandbox *sandbox = current_sandbox_get(); - return sandbox_set_file_descriptor(sandbox, io_handle_index, file_descriptor); + return sandbox_set_file_descriptor(current_sandbox_get(), io_handle_index, file_descriptor); } /**