From 971f6f254123e6409098a894bc887443b58e11cb Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Mon, 20 Dec 2021 08:06:55 -0800 Subject: [PATCH] distvec: make a static function This function is not used outside of stuff.c. --- lib/neatogen/neatoprocs.h | 1 - lib/neatogen/stuff.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/neatogen/neatoprocs.h b/lib/neatogen/neatoprocs.h index 84aca5c1f..c09221911 100644 --- a/lib/neatogen/neatoprocs.h +++ b/lib/neatogen/neatoprocs.h @@ -32,7 +32,6 @@ extern "C" { NEATOPROCS_API int checkStart(graph_t * G, int nG, int); NEATOPROCS_API int circuit_model(graph_t *, int); NEATOPROCS_API void diffeq_model(graph_t *, int); - NEATOPROCS_API double distvec(double *, double *, double *); NEATOPROCS_API void final_energy(graph_t *, int); NEATOPROCS_API double fpow32(double); NEATOPROCS_API Ppolyline_t getPath(edge_t *, vconfig_t *, int, Ppoly_t **, diff --git a/lib/neatogen/stuff.c b/lib/neatogen/stuff.c index 010748b9b..88558ce32 100644 --- a/lib/neatogen/stuff.c +++ b/lib/neatogen/stuff.c @@ -27,7 +27,7 @@ double fpow32(double x) return x * x * x; } -double distvec(double *p0, double *p1, double *vec) +static double distvec(double *p0, double *p1, double *vec) { int k; double dist = 0.0; -- 2.40.0