From 8e3ea14c9406f3f3e5fe613bfe59906447a195e0 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Thu, 16 Aug 2018 14:25:24 -0700 Subject: uhd: Remove usage of time_t (except when required) The C/C++ standards don't define what time_t is, only that it is arithmetic (and real for C11, and integral for C++). It should not be used in portable software and is only used as the return value for some libc calls. A common definition for time_t is int64_t, so we'll switch to that permanently in our own APIs. System APIs will of course stick with time_t. --- host/lib/usrp/usrp_c.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'host/lib/usrp/usrp_c.cpp') diff --git a/host/lib/usrp/usrp_c.cpp b/host/lib/usrp/usrp_c.cpp index 1eb52d9af..94f0f4eba 100644 --- a/host/lib/usrp/usrp_c.cpp +++ b/host/lib/usrp/usrp_c.cpp @@ -435,7 +435,7 @@ uhd_error uhd_usrp_get_mboard_name( uhd_error uhd_usrp_get_time_now( uhd_usrp_handle h, size_t mboard, - time_t *full_secs_out, + int64_t *full_secs_out, double *frac_secs_out ){ UHD_SAFE_C_SAVE_ERROR(h, @@ -448,7 +448,7 @@ uhd_error uhd_usrp_get_time_now( uhd_error uhd_usrp_get_time_last_pps( uhd_usrp_handle h, size_t mboard, - time_t *full_secs_out, + int64_t *full_secs_out, double *frac_secs_out ){ UHD_SAFE_C_SAVE_ERROR(h, @@ -460,7 +460,7 @@ uhd_error uhd_usrp_get_time_last_pps( uhd_error uhd_usrp_set_time_now( uhd_usrp_handle h, - time_t full_secs, + int64_t full_secs, double frac_secs, size_t mboard ){ @@ -472,7 +472,7 @@ uhd_error uhd_usrp_set_time_now( uhd_error uhd_usrp_set_time_next_pps( uhd_usrp_handle h, - time_t full_secs, + int64_t full_secs, double frac_secs, size_t mboard ){ @@ -484,7 +484,7 @@ uhd_error uhd_usrp_set_time_next_pps( uhd_error uhd_usrp_set_time_unknown_pps( uhd_usrp_handle h, - time_t full_secs, + int64_t full_secs, double frac_secs ){ UHD_SAFE_C_SAVE_ERROR(h, @@ -505,7 +505,7 @@ uhd_error uhd_usrp_get_time_synchronized( uhd_error uhd_usrp_set_command_time( uhd_usrp_handle h, - time_t full_secs, + int64_t full_secs, double frac_secs, size_t mboard ){ -- cgit v1.2.3