Remove unnecessary config.h includes
[alexxy/gromacs.git] / src / gromacs / gmxana / levenmar.c
index b1f6502770f0b9b04866c370d23bc1184d0e257e..c84f103bc0e221158c0c2bca5f88fc38d448f06e 100644 (file)
@@ -3,7 +3,7 @@
  *
  * Copyright (c) 1991-2000, University of Groningen, The Netherlands.
  * Copyright (c) 2001-2004, The GROMACS development team.
- * Copyright (c) 2013, by the GROMACS development team, led by
+ * Copyright (c) 2013,2014, by the GROMACS development team, led by
  * Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
  * and including many others, as listed in the AUTHORS file in the
  * top-level source directory and at http://www.gromacs.org.
  * To help us fund GROMACS development, we humbly ask that you cite
  * the research papers on the package. Check out http://www.gromacs.org.
  */
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
+#include "gmxpre.h"
 
 #include <math.h>
 #include <stdio.h>
 #include <stdlib.h>
 
-#include "types/simple.h"
+#include "gromacs/utility/basedefinitions.h"
+#include "gromacs/utility/real.h"
 
 static void nrerror(const char error_text[], gmx_bool bExit)
 {
@@ -68,6 +67,8 @@ static real *rvector(int nl, int nh)
     {
         nrerror("allocation failure in rvector()", TRUE);
     }
+    /* cppcheck-suppress memleak
+     * free_vector does the same vector arithmetic */
     return v-nl;
 }
 
@@ -80,6 +81,8 @@ static int *ivector(int nl, int nh)
     {
         nrerror("allocation failure in ivector()", TRUE);
     }
+    /* cppcheck-suppress memleak
+     * free_vector does the same vector arithmetic */
     return v-nl;
 }