diff options
author | Rickard Green <[email protected]> | 2012-12-19 23:22:06 +0100 |
---|---|---|
committer | Rickard Green <[email protected]> | 2012-12-19 23:22:06 +0100 |
commit | cf4eb83fc4de777bcb874111d4b197915b5db47e (patch) | |
tree | 4b8a011a5f616e3f39fd66a881e0cc2cce1be569 /erts/emulator/test/send_term_SUITE_data | |
parent | 22cc487ec5381d15a2edebc2024c0cb36125ea44 (diff) | |
download | otp-cf4eb83fc4de777bcb874111d4b197915b5db47e.tar.gz otp-cf4eb83fc4de777bcb874111d4b197915b5db47e.tar.bz2 otp-cf4eb83fc4de777bcb874111d4b197915b5db47e.zip |
Replace use of deprecated functions in test cases
driver_send_term() replaced by erl_drv_send_term().
driver_output_term() replaced by erl_drv_output_term().
Diffstat (limited to 'erts/emulator/test/send_term_SUITE_data')
-rw-r--r-- | erts/emulator/test/send_term_SUITE_data/send_term_drv.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/erts/emulator/test/send_term_SUITE_data/send_term_drv.c b/erts/emulator/test/send_term_SUITE_data/send_term_drv.c index b3feca79f0..f8613487b0 100644 --- a/erts/emulator/test/send_term_SUITE_data/send_term_drv.c +++ b/erts/emulator/test/send_term_SUITE_data/send_term_drv.c @@ -664,7 +664,7 @@ static void send_term_drv_run(ErlDrvData port, char *buf, ErlDrvSizeT count) /* Signal end of test case */ msg[0] = ERL_DRV_NIL; - driver_output_term(erlang_port, msg, 1); + erl_drv_output_term(driver_mk_port(erlang_port), msg, 1); return; } break; @@ -687,14 +687,14 @@ static void send_term_drv_run(ErlDrvData port, char *buf, ErlDrvSizeT count) static void output_term(ErlDrvTermData* msg, int len) { - if (driver_output_term(erlang_port, msg, len) <= 0) { - driver_failure_atom(erlang_port, "driver_output_term_failed"); + if (erl_drv_output_term(driver_mk_port(erlang_port), msg, len) <= 0) { + driver_failure_atom(erlang_port, "erl_drv_output_term_failed"); } } static void fail_term(ErlDrvTermData* msg, int len, int line) { - int status = driver_output_term(erlang_port, msg, len); + int status = erl_drv_output_term(driver_mk_port(erlang_port), msg, len); if (status == 1) { char buf[1024]; |