From f57484cdcec45ef2c0dd38fc864b38e3a461ef0a Mon Sep 17 00:00:00 2001 From: Carl Reinke Date: Wed, 6 Sep 2017 11:33:55 -0600 Subject: 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. --- host/lib/usrp/usrp_c.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'host/lib') 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); ) -- cgit v1.2.3