diff options
author | Sverker Eriksson <[email protected]> | 2013-12-13 16:17:30 +0100 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2013-12-13 16:17:30 +0100 |
commit | d7b9addd8637f67ba670312033acf1c0695f5af6 (patch) | |
tree | 4c2c6599670e2cdb85bc3fbbf2920f1435824e11 /erts/emulator/beam/erl_nif.c | |
parent | 02f75aa7d187f1e2462f7b8793446b1f9be7c612 (diff) | |
download | otp-d7b9addd8637f67ba670312033acf1c0695f5af6.tar.gz otp-d7b9addd8637f67ba670312033acf1c0695f5af6.tar.bz2 otp-d7b9addd8637f67ba670312033acf1c0695f5af6.zip |
erts: Refactor remove erts_sys_dll_open2
Diffstat (limited to 'erts/emulator/beam/erl_nif.c')
-rw-r--r-- | erts/emulator/beam/erl_nif.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/erts/emulator/beam/erl_nif.c b/erts/emulator/beam/erl_nif.c index e87959f0ab..de626ca4e1 100644 --- a/erts/emulator/beam/erl_nif.c +++ b/erts/emulator/beam/erl_nif.c @@ -1407,7 +1407,7 @@ void* enif_dlopen(const char* lib, ErtsSysDdllError errdesc = ERTS_SYS_DDLL_ERROR_INIT; void* handle; void* init_func; - if (erts_sys_ddll_open2(lib, &handle, &errdesc) == ERL_DE_NO_ERROR) { + if (erts_sys_ddll_open(lib, &handle, &errdesc) == ERL_DE_NO_ERROR) { if (erts_sys_ddll_load_nif_init(handle, &init_func, &errdesc) == ERL_DE_NO_ERROR) { erts_sys_ddll_call_nif_init(init_func); } @@ -1626,7 +1626,7 @@ BIF_RETTYPE load_nif_2(BIF_ALIST_2) "module '%T' not allowed", mod_atom); } else if (init_func == NULL && - (err=erts_sys_ddll_open2(lib_name, &handle, &errdesc)) != ERL_DE_NO_ERROR) { + (err=erts_sys_ddll_open(lib_name, &handle, &errdesc)) != ERL_DE_NO_ERROR) { const char slogan[] = "Failed to load NIF library"; if (strstr(errdesc.str, lib_name) != NULL) { ret = load_nif_error(BIF_P, "load_failed", "%s: '%s'", slogan, errdesc.str); |