aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/utils/platform.cpp
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2016-11-08 08:41:46 -0800
committerMartin Braun <martin.braun@ettus.com>2016-11-08 08:41:46 -0800
commit9b852f5f243e5cf68662b7152b5fa331a83e55fb (patch)
tree159ffe0761f78dd87e2ecc97abea14494abab4ff /host/lib/utils/platform.cpp
parentc66cb1bad0d881394f3519bd94f4693cceab4c64 (diff)
parent99c2730bc9db270560671f2d7d173768465ed51f (diff)
downloaduhd-9b852f5f243e5cf68662b7152b5fa331a83e55fb.tar.gz
uhd-9b852f5f243e5cf68662b7152b5fa331a83e55fb.tar.bz2
uhd-9b852f5f243e5cf68662b7152b5fa331a83e55fb.zip
Merge branch 'maint'
Diffstat (limited to 'host/lib/utils/platform.cpp')
-rw-r--r--host/lib/utils/platform.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/host/lib/utils/platform.cpp b/host/lib/utils/platform.cpp
index a9cef663b..30f3337ac 100644
--- a/host/lib/utils/platform.cpp
+++ b/host/lib/utils/platform.cpp
@@ -26,15 +26,15 @@
namespace uhd {
- boost::int32_t get_process_id() {
+ int32_t get_process_id() {
#ifdef UHD_PLATFORM_WIN32
- return boost::int32_t(GetCurrentProcessId());
+ return int32_t(GetCurrentProcessId());
#else
- return boost::int32_t(getpid());
+ return int32_t(getpid());
#endif
}
- boost::uint32_t get_host_id() {
+ uint32_t get_host_id() {
#ifdef UHD_PLATFORM_WIN32
//extract volume serial number
char szVolName[MAX_PATH+1], szFileSysName[MAX_PATH+1];
@@ -43,16 +43,16 @@ namespace uhd {
&dwSerialNumber, &dwMaxComponentLen,
&dwFileSysFlags, szFileSysName, sizeof(szFileSysName));
- return boost::uint32_t(dwSerialNumber);
+ return uint32_t(dwSerialNumber);
#else
- return boost::uint32_t(gethostid());
+ return uint32_t(gethostid());
#endif
}
- boost::uint32_t get_process_hash() {
+ uint32_t get_process_hash() {
size_t hash = 0;
boost::hash_combine(hash, uhd::get_process_id());
boost::hash_combine(hash, uhd::get_host_id());
- return boost::uint32_t(hash);
+ return uint32_t(hash);
}
}