aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/erl_init.c
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2012-01-20 17:42:50 +0100
committerSverker Eriksson <[email protected]>2012-02-21 12:23:00 +0100
commit28a1a227f8097c5c593149f66a98a1b1cf796e99 (patch)
treec9afd7f630e23b80c34e89a831b7e8a459387265 /erts/emulator/beam/erl_init.c
parent0ebc1871238508783733423825d22967f5096d19 (diff)
downloadotp-28a1a227f8097c5c593149f66a98a1b1cf796e99.tar.gz
otp-28a1a227f8097c5c593149f66a98a1b1cf796e99.tar.bz2
otp-28a1a227f8097c5c593149f66a98a1b1cf796e99.zip
erts: Rename erts_load_module to erts_preload_module
As it can only be used at initialization for preloading
Diffstat (limited to 'erts/emulator/beam/erl_init.c')
-rw-r--r--erts/emulator/beam/erl_init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/beam/erl_init.c b/erts/emulator/beam/erl_init.c
index 54b3c19616..487c444df4 100644
--- a/erts/emulator/beam/erl_init.c
+++ b/erts/emulator/beam/erl_init.c
@@ -453,7 +453,7 @@ load_preloaded(void)
if ((code = sys_preload_begin(&preload_p[i])) == 0)
erl_exit(1, "Failed to find preloaded code for module %s\n",
name);
- res = erts_load_module(NULL, 0, NIL, &module_name, code, length);
+ res = erts_preload_module(NULL, 0, NIL, &module_name, code, length);
sys_preload_end(&preload_p[i]);
if (res != NIL)
erl_exit(1,"Failed loading preloaded module %s (%T)\n",