]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
Change length of resid buffer to MAX_POINTS
authorMiroslav Lichvar <mlichvar@redhat.com>
Fri, 6 Aug 2010 12:51:37 +0000 (14:51 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Fri, 6 Aug 2010 12:51:37 +0000 (14:51 +0200)
regress.c

index c870a1958786f942bd8e14b5775f75d1c2369a71..238fa317e5df447f26eb21d9d895ad5d136622a0 100644 (file)
--- a/regress.c
+++ b/regress.c
@@ -218,7 +218,6 @@ n_runs_from_residuals(double *resid, int n)
 /* Return a boolean indicating whether we had enough points for
    regression */
 
-#define RESID_SIZE 1024
 #define MIN_SAMPLES_FOR_REGRESS 3
 
 int
@@ -252,7 +251,7 @@ RGR_FindBestRegression
 )
 {
   double P, Q, U, V, W; /* total */
-  double resid[RESID_SIZE];
+  double resid[MAX_POINTS];
   double ss;
   double a, b, u, ui, aa;