diff mbox series

[1/2] time: expose _time_from_timespec in time-private.h

Message ID 20240829112549.24935-1-prestwoj@gmail.com (mailing list archive)
State Accepted, archived
Headers show
Series [1/2] time: expose _time_from_timespec in time-private.h | expand

Checks

Context Check Description
tedd_an/pre-ci_am success Success
prestwoj/iwd-ci-setupell success Prep - Setup ELL
prestwoj/iwd-ci-makedistcheck success Make Distcheck
prestwoj/iwd-ci-build success Build - Configure
prestwoj/iwd-ci-makecheck success Make Check
prestwoj/iwd-ci-makecheckvalgrind success Make Check w/Valgrind
prestwoj/iwd-ci-clang success clang PASS
prestwoj/iwd-ci-testrunner success test-runner PASS

Commit Message

James Prestwood Aug. 29, 2024, 11:25 a.m. UTC
---
 ell/time-private.h | 1 +
 ell/time.c         | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

Comments

Denis Kenzior Sept. 3, 2024, 3:05 p.m. UTC | #1
Hi James,

On 8/29/24 6:25 AM, James Prestwood wrote:
> ---
>   ell/time-private.h | 1 +
>   ell/time.c         | 2 +-
>   2 files changed, 2 insertions(+), 1 deletion(-)

all applied, thanks.

Regards,
-Denis
diff mbox series

Patch

diff --git a/ell/time-private.h b/ell/time-private.h
index 59c2421..2860943 100644
--- a/ell/time-private.h
+++ b/ell/time-private.h
@@ -12,3 +12,4 @@  uint64_t _time_fuzz_msecs(uint64_t ms);
 uint64_t _time_fuzz_secs(uint32_t secs, uint32_t max_offset);
 uint64_t _time_realtime_to_boottime(const struct timeval *ts);
 uint64_t time_realtime_now(void);
+uint64_t _time_from_timespec(const struct timespec *ts);
diff --git a/ell/time.c b/ell/time.c
index de4e161..e124a91 100644
--- a/ell/time.c
+++ b/ell/time.c
@@ -18,7 +18,7 @@ 
 #include "random.h"
 #include "private.h"
 
-static uint64_t _time_from_timespec(const struct timespec *ts)
+uint64_t _time_from_timespec(const struct timespec *ts)
 {
 	return ts->tv_sec * L_USEC_PER_SEC + ts->tv_nsec / L_NSEC_PER_USEC;
 }