From: Mark Hansen Date: Mon, 14 Nov 2022 10:49:34 +0000 (+1100) Subject: Give better argument name to edgeType X-Git-Tag: 7.0.2~8^2~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a6837483be8aa2fffa572e63bbce49394f896c88;p=graphviz Give better argument name to edgeType --- diff --git a/lib/common/utils.c b/lib/common/utils.c index ac6b6becd..d30ca3c8d 100644 --- a/lib/common/utils.c +++ b/lib/common/utils.c @@ -1594,10 +1594,9 @@ bool overlap_edge(edge_t *e, boxf b) /* edgeType: * Convert string to edge type. */ -static int edgeType(const char *s, int dflt) -{ +static int edgeType(const char *s, int defaultValue) { if (s == NULL || strcmp(s, "") == 0) { - return dflt; + return defaultValue; } if (*s == '0') { /* false */ @@ -1629,7 +1628,7 @@ static int edgeType(const char *s, int dflt) } agerr(AGWARN, "Unknown \"splines\" value: \"%s\" - ignored\n", s); - return dflt; + return defaultValue; } /* setEdgeType: