diff options
author | Carl Reinke <creinke-sandia@users.noreply.github.com> | 2017-09-06 11:33:55 -0600 |
---|---|---|
committer | michael-west <michael.west@ettus.com> | 2017-12-19 17:18:33 -0800 |
commit | f57484cdcec45ef2c0dd38fc864b38e3a461ef0a (patch) | |
tree | 05876be10df15512eac9674c3a86d7c786bbe057 /host/lib | |
parent | d9d9d0a8a2e61b1b82e9799585cb7376f581f276 (diff) | |
download | uhd-f57484cdcec45ef2c0dd38fc864b38e3a461ef0a.tar.gz uhd-f57484cdcec45ef2c0dd38fc864b38e3a461ef0a.tar.bz2 uhd-f57484cdcec45ef2c0dd38fc864b38e3a461ef0a.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')
-rw-r--r-- | host/lib/usrp/usrp_c.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/host/lib/usrp/usrp_c.cpp b/host/lib/usrp/usrp_c.cpp index e97be2abe..4f2ed8c65 100644 --- a/host/lib/usrp/usrp_c.cpp +++ b/host/lib/usrp/usrp_c.cpp @@ -157,7 +157,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); ) |