Skip to content

Commit 7bf8802

Browse files
[wasi] Remove unused string parameter from mono_wasm_load_runtime (#104608)
Context: #104356 (comment) Co-authored-by: Pavel Savara <[email protected]>
1 parent 0290065 commit 7bf8802

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/mono/wasi/mono-include/driver.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#include <mono/metadata/object.h>
66
#include <mono/metadata/loader.h>
77

8-
void mono_wasm_load_runtime (const char *unused, int debug_level);
8+
void mono_wasm_load_runtime (int debug_level);
99
int mono_wasm_add_assembly (const char *name, const unsigned char *data, unsigned int size);
1010
MonoAssembly* mono_wasm_assembly_load(const char *name);
1111
MonoMethod* mono_wasi_assembly_get_entry_point (MonoAssembly *assembly);

src/mono/wasi/runtime/driver.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ load_runtimeconfig (void)
242242
}
243243

244244
void
245-
mono_wasm_load_runtime (const char *unused, int debug_level)
245+
mono_wasm_load_runtime (int debug_level)
246246
{
247247
const char *interp_opts = "";
248248

src/mono/wasi/runtime/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ int initialize_runtime()
5050
#ifndef WASM_SINGLE_FILE
5151
mono_set_assemblies_path("managed");
5252
#endif
53-
mono_wasm_load_runtime("", 0);
53+
mono_wasm_load_runtime(0);
5454

5555
#ifdef WASI_AFTER_RUNTIME_LOADED_CALLS
5656
// This is supplied from the MSBuild itemgroup @(WasiAfterRuntimeLoaded)

0 commit comments

Comments
 (0)