From: Jan Beulich Date: Mon, 7 Apr 2025 10:17:06 +0000 (+0200) Subject: time: drop cast from NOW() X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=abc4ba58079696505c5a341d224b4afcd7106c6a;p=xen.git 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 Acked-by: Andrew Cooper --- 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))