]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
Rename round() function to avoid clash with builtin mandriva-1.22
authorRichard P. Curnow <rc@rc0.org.uk>
Fri, 14 Apr 2006 23:34:04 +0000 (00:34 +0100)
committerRichard P. Curnow <rc@rc0.org.uk>
Fri, 14 Apr 2006 23:34:04 +0000 (00:34 +0100)
sys_linux.c

index 83bad7352b76761f22a24d8d481880b56e73e5cc..137e55b2e8599d054295f5e829c5e8e797962746 100644 (file)
@@ -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) {