From b0db03afbf2fd0f563ac95cdab31623b452fda73 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sat, 8 May 2021 10:46:42 -0700 Subject: [PATCH] make edgeType() static This function is not used outside of lib/common/utils.c and utils.h is not a shipped header. --- lib/common/utils.c | 2 +- lib/common/utils.h | 1 - lib/gvc/gvc.def | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/common/utils.c b/lib/common/utils.c index 158a576d9..14583a729 100644 --- a/lib/common/utils.c +++ b/lib/common/utils.c @@ -1701,7 +1701,7 @@ boolean overlap_edge(edge_t *e, boxf b) /* edgeType: * Convert string to edge type. */ -int edgeType (char* s, int dflt) +static int edgeType (char* s, int dflt) { if (s == NULL || strcmp(s, "") == 0) { return dflt; diff --git a/lib/common/utils.h b/lib/common/utils.h index 239afb975..b6b7c6f15 100644 --- a/lib/common/utils.h +++ b/lib/common/utils.h @@ -93,7 +93,6 @@ extern "C" { extern Agsym_t *setAttr(graph_t*, void*, char*name, char *value, Agsym_t*); extern void setEdgeType (graph_t* g, int dflt); - extern int edgeType (char* s, int dflt); extern int is_a_cluster (Agraph_t* g); /* from postproc.c */ diff --git a/lib/gvc/gvc.def b/lib/gvc/gvc.def index 53dfaf835..6b8834e20 100644 --- a/lib/gvc/gvc.def +++ b/lib/gvc/gvc.def @@ -79,7 +79,6 @@ E_taillabel E_visitedfillcolor E_visitedpencolor E_weight -edgeType elapsed_sec emit_clusters emit_graph -- 2.40.0