diff options
author | Martin Braun <martin.braun@ettus.com> | 2020-03-02 15:25:13 -0800 |
---|---|---|
committer | atrnati <54334261+atrnati@users.noreply.github.com> | 2020-03-03 08:51:32 -0600 |
commit | 876d4150aa3da531ddd687b48afada6e43f79146 (patch) | |
tree | fd72a71419f4cd800d4e500cfcaded4dfc8dc367 /host/lib/version_c.cpp | |
parent | 1393553d623bdf4ba40d5435c9719b6ce990d9ac (diff) | |
download | uhd-876d4150aa3da531ddd687b48afada6e43f79146.tar.gz uhd-876d4150aa3da531ddd687b48afada6e43f79146.tar.bz2 uhd-876d4150aa3da531ddd687b48afada6e43f79146.zip |
uhd: Apply clang-format against all .cpp and .hpp files in host/
Note: template_lvbitx.{cpp,hpp} need to be excluded from the list of
files that clang-format gets applied against.
Diffstat (limited to 'host/lib/version_c.cpp')
-rw-r--r-- | host/lib/version_c.cpp | 29 |
1 files changed, 10 insertions, 19 deletions
diff --git a/host/lib/version_c.cpp b/host/lib/version_c.cpp index 2897a6407..95dd93141 100644 --- a/host/lib/version_c.cpp +++ b/host/lib/version_c.cpp @@ -6,29 +6,20 @@ #include <uhd/version.h> #include <uhd/version.hpp> - #include <string.h> -uhd_error uhd_get_abi_string( - char* abi_string_out, - size_t buffer_len -){ - UHD_SAFE_C( - const std::string cpp_abi_string = uhd::get_abi_string(); +uhd_error uhd_get_abi_string(char* abi_string_out, size_t buffer_len) +{ + UHD_SAFE_C(const std::string cpp_abi_string = uhd::get_abi_string(); - memset(abi_string_out, 0, buffer_len); - strncpy(abi_string_out, cpp_abi_string.c_str(), buffer_len); - ) + memset(abi_string_out, 0, buffer_len); + strncpy(abi_string_out, cpp_abi_string.c_str(), buffer_len);) } -uhd_error uhd_get_version_string( - char* version_out, - size_t buffer_len -){ - UHD_SAFE_C( - const std::string cpp_version = uhd::get_version_string(); +uhd_error uhd_get_version_string(char* version_out, size_t buffer_len) +{ + UHD_SAFE_C(const std::string cpp_version = uhd::get_version_string(); - memset(version_out, 0, buffer_len); - strncpy(version_out, cpp_version.c_str(), buffer_len); - ) + memset(version_out, 0, buffer_len); + strncpy(version_out, cpp_version.c_str(), buffer_len);) } |