From: Matthew Fernandez Date: Mon, 20 Dec 2021 16:06:55 +0000 (-0800) Subject: distvec: make a static function X-Git-Tag: 3.0.0~103^2~6 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=971f6f254123e6409098a894bc887443b58e11cb;p=graphviz distvec: make a static function This function is not used outside of stuff.c. --- 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;