From: Richard P. Curnow Date: Fri, 14 Apr 2006 23:34:04 +0000 (+0100) Subject: Rename round() function to avoid clash with builtin X-Git-Tag: mandriva-1.22^0 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1a4fa3330a2c65e4a443ccf17e4a76cc1f871573;p=thirdparty%2Fchrony.git Rename round() function to avoid clash with builtin --- diff --git a/sys_linux.c b/sys_linux.c index 83bad735..137e55b2 100644 --- a/sys_linux.c +++ b/sys_linux.c @@ -98,7 +98,7 @@ static void handle_end_of_slew(void *anything); /* ================================================== */ inline static int -round(double x) { +our_round(double x) { int y; y = (int)(x + 0.5); while ((double)y < x - 0.5) y++; @@ -433,7 +433,7 @@ set_frequency(double freq_ppm) { neg = 0; } - required_delta_tick = round(freq_ppm / dhz); + required_delta_tick = our_round(freq_ppm / dhz); required_freq = freq_ppm - dhz * (double) required_delta_tick; if (neg) {