On 30.10.18 08:13, Mauro Salvini wrote:
make cast explicit to avoid warning when user code is compiled with
-Wconversion
Please sign-off your patches, according to CONTRIBUTING.md.
---
include/copperplate/clockobj.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/copperplate/clockobj.h
b/include/copperplate/clockobj.h
index 8568794d9..063bcce90 100644
--- a/include/copperplate/clockobj.h
+++ b/include/copperplate/clockobj.h
@@ -136,7 +136,7 @@ void clockobj_ns_to_timespec(ticks_t ns, struct
timespec *ts)
Something mangled this line, probably your mail client.
{
unsigned long rem;
- ts->tv_sec = cobalt_divrem_billion(ns, &rem);
+ ts->tv_sec = (__kernel_time_t)cobalt_divrem_billion(ns, &rem);
Why not time_t, the public target type?
ts->tv_nsec = rem;
}
--
2.11.0
Thanks,
Jan
--
Siemens AG, Corporate Technology, CT RDA IOT SES-DE
Corporate Competence Center Embedded Linux