aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/usrp_c.cpp
diff options
context:
space:
mode:
authorCarl Reinke <creinke-sandia@users.noreply.github.com>2017-09-06 11:33:55 -0600
committerMartin Braun <martin.braun@ettus.com>2017-09-28 17:50:23 -0700
commitcd30ecf6e2fd3197d75ca82045c473c98be6889e (patch)
treedf96ecf620e8959432125146423842736e92c8a5 /host/lib/usrp/usrp_c.cpp
parent4409320699465bb7434ad78e76761fe1914d34b0 (diff)
downloaduhd-cd30ecf6e2fd3197d75ca82045c473c98be6889e.tar.gz
uhd-cd30ecf6e2fd3197d75ca82045c473c98be6889e.tar.bz2
uhd-cd30ecf6e2fd3197d75ca82045c473c98be6889e.zip
C API: Make uhd_rx_streamer_last_error use SAFE_C
uhd_tx_streamer_last_error and uhd_usrp_last_error use UHD_SAFE_C and so uhd_rx_streamer_last_error should as well in order to be consistent. Currently using UHD_SAFE_C_SAVE_ERROR.
Diffstat (limited to 'host/lib/usrp/usrp_c.cpp')
-rw-r--r--host/lib/usrp/usrp_c.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/host/lib/usrp/usrp_c.cpp b/host/lib/usrp/usrp_c.cpp
index a61a1cf02..5536c7946 100644
--- a/host/lib/usrp/usrp_c.cpp
+++ b/host/lib/usrp/usrp_c.cpp
@@ -156,7 +156,7 @@ uhd_error uhd_rx_streamer_last_error(
char* error_out,
size_t strbuffer_len
){
- UHD_SAFE_C_SAVE_ERROR(h,
+ UHD_SAFE_C(
memset(error_out, '\0', strbuffer_len);
strncpy(error_out, h->last_error.c_str(), strbuffer_len);
)