chore: DRY up current_sandbox funcs

main
Sean McBride 4 years ago
parent dfb1c65e93
commit f45b450360

@ -52,8 +52,7 @@ current_sandbox_set(struct sandbox *sandbox)
int int
current_sandbox_initialize_io_handle(void) current_sandbox_initialize_io_handle(void)
{ {
struct sandbox *sandbox = current_sandbox_get(); return sandbox_initialize_io_handle(current_sandbox_get());
return sandbox_initialize_io_handle(sandbox);
} }
int sandbox_parse_http_request(struct sandbox *sandbox, size_t l); 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 int
current_sandbox_set_file_descriptor(int io_handle_index, int file_descriptor) current_sandbox_set_file_descriptor(int io_handle_index, int file_descriptor)
{ {
struct sandbox *sandbox = current_sandbox_get(); return sandbox_set_file_descriptor(current_sandbox_get(), io_handle_index, file_descriptor);
return sandbox_set_file_descriptor(sandbox, io_handle_index, file_descriptor);
} }
/** /**

Loading…
Cancel
Save