diff options
author | Rickard Green <[email protected]> | 2012-12-19 23:21:13 +0100 |
---|---|---|
committer | Rickard Green <[email protected]> | 2012-12-19 23:21:13 +0100 |
commit | 22cc487ec5381d15a2edebc2024c0cb36125ea44 (patch) | |
tree | 0106bc68ece21b33e6a31335edbe34e43693e331 | |
parent | fe6cac45c744ed2937e9905f779244d93142f2db (diff) | |
download | otp-22cc487ec5381d15a2edebc2024c0cb36125ea44.tar.gz otp-22cc487ec5381d15a2edebc2024c0cb36125ea44.tar.bz2 otp-22cc487ec5381d15a2edebc2024c0cb36125ea44.zip |
Replace use of driver_send_term() with erl_drv_send_term()
-rw-r--r-- | lib/megaco/src/flex/megaco_flex_scanner_drv.flex.src | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/megaco/src/flex/megaco_flex_scanner_drv.flex.src b/lib/megaco/src/flex/megaco_flex_scanner_drv.flex.src index b8146c345d..5faddb08c5 100644 --- a/lib/megaco/src/flex/megaco_flex_scanner_drv.flex.src +++ b/lib/megaco/src/flex/megaco_flex_scanner_drv.flex.src @@ -76,6 +76,7 @@ typedef struct { ErlDrvPort port; + ErlDrvTermData port_id; char* digit_map_name_ptr; int digit_map_name_len; char* digit_map_value_ptr; @@ -1497,6 +1498,7 @@ static ErlDrvData mfs_start(ErlDrvPort port, char *buf) DBG( ("mfs_start -> entry\n") ); dataP->port = port; + dataP->port_id = driver_mk_port(port); dataP->digit_map_name_ptr = NULL; dataP->digit_map_name_len = 0; dataP->digit_map_value_ptr = NULL; @@ -1841,10 +1843,10 @@ static ErlDrvSSizeT mfs_control(ErlDrvData handle, "\n term_spec_size: %d\n", dataP->term_spec_index, dataP->term_spec_size) ); - driver_send_term(dataP->port, - driver_caller(dataP->port), - dataP->term_spec, - dataP->term_spec_index); + erl_drv_send_term(dataP->port_id, + driver_caller(dataP->port), + dataP->term_spec, + dataP->term_spec_index); if (dataP->text_buf != NULL) FREE(dataP->text_buf); if (dataP->term_spec != NULL) FREE(dataP->term_spec); |