|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [xen master] time: drop cast from NOW()
commit abc4ba58079696505c5a341d224b4afcd7106c6a
Author: Jan Beulich <jbeulich@xxxxxxxx>
AuthorDate: Mon Apr 7 12:17:06 2025 +0200
Commit: Jan Beulich <jbeulich@xxxxxxxx>
CommitDate: Mon Apr 7 12:17:06 2025 +0200
time: drop cast from NOW()
It gives the wrong impression of there being a type change, when
get_s_time() really returns s_time_t itself (kind of naturally given its
name).
Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>
Acked-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
---
xen/include/xen/time.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/xen/include/xen/time.h b/xen/include/xen/time.h
index 21e479aac8..fe0d7a578a 100644
--- a/xen/include/xen/time.h
+++ b/xen/include/xen/time.h
@@ -53,7 +53,7 @@ struct tm gmtime(unsigned long t);
struct tm wallclock_time(uint64_t *ns);
#define SYSTEM_TIME_HZ 1000000000ULL
-#define NOW() ((s_time_t)get_s_time())
+#define NOW() get_s_time()
#define DAYS(_d) SECONDS((_d) * 86400ULL)
#define SECONDS(_s) ((s_time_t)((_s) * 1000000000ULL))
#define MILLISECS(_ms) ((s_time_t)((_ms) * 1000000ULL))
--
generated by git-patchbot for /home/xen/git/xen.git#master
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |