diff options
author | Sverker Eriksson <[email protected]> | 2016-09-19 14:34:57 +0200 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2016-09-19 14:34:57 +0200 |
commit | 4f8071d81aa0690caa3adc734d73a1cb004ad808 (patch) | |
tree | 43891bce5cabd0baad365835b621971b2bc27940 /erts/emulator/test/nif_SUITE_data/tester.c | |
parent | 7262d8630998517e97ec62a7e0d9cbdd23fdd9c8 (diff) | |
download | otp-4f8071d81aa0690caa3adc734d73a1cb004ad808.tar.gz otp-4f8071d81aa0690caa3adc734d73a1cb004ad808.tar.bz2 otp-4f8071d81aa0690caa3adc734d73a1cb004ad808.zip |
erts: Remove deprecated nif 'reload' feature
and instead let erlang:load_nif/2 return {error, {reload, _}}
before even trying to load the library
if a NIF library has already been successfully loaded
for the calling module instance.
Diffstat (limited to 'erts/emulator/test/nif_SUITE_data/tester.c')
-rw-r--r-- | erts/emulator/test/nif_SUITE_data/tester.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/erts/emulator/test/nif_SUITE_data/tester.c b/erts/emulator/test/nif_SUITE_data/tester.c index 257b116322..9e0074d554 100644 --- a/erts/emulator/test/nif_SUITE_data/tester.c +++ b/erts/emulator/test/nif_SUITE_data/tester.c @@ -53,7 +53,7 @@ void testcase_free(void *ptr) void testcase_run(TestCaseState_t *tcs); -static int reload(ErlNifEnv* env, void** priv_data, ERL_NIF_TERM load_info) +static int upgrade(ErlNifEnv* env, void** priv_data, void** old_priv_data, ERL_NIF_TERM load_info) { return 0; } @@ -70,5 +70,5 @@ static ErlNifFunc nif_funcs[] = {"run", 0, run} }; -ERL_NIF_INIT(tester,nif_funcs,NULL,reload,NULL,NULL) +ERL_NIF_INIT(tester,nif_funcs,NULL,NULL,upgrade,NULL) |