From a4264b3e6ee61fe4f4c84027202065120d607cbb Mon Sep 17 00:00:00 2001 From: Richard Cochran Date: Wed, 5 Nov 2014 23:20:51 +0100 Subject: [PATCH] trivial: do not assign a FP constant to an integer. Signed-off-by: Richard Cochran --- clock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clock.c b/clock.c index 2999016..835d2c3 100644 --- a/clock.c +++ b/clock.c @@ -794,7 +794,7 @@ struct clock *clock_create(int phc_index, struct interfaces_head *ifaces, enum timestamp_type timestamping, struct default_ds *dds, enum servo_type servo) { - int fadj = 0, max_adj = 0.0, sw_ts = timestamping == TS_SOFTWARE ? 1 : 0; + int fadj = 0, max_adj = 0, sw_ts = timestamping == TS_SOFTWARE ? 1 : 0; struct clock *c = &the_clock; struct port *p; char phc[32];