From 0b9cea01d16acf95a1e585c717f0703caa13dc5e Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Fri, 30 Sep 2022 19:29:38 -0700 Subject: [PATCH] gv2gxl writeHdr: take a C99 bool for 'top' Slightly clearer about the intent of this parameter. --- cmd/tools/gv2gxl.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/cmd/tools/gv2gxl.c b/cmd/tools/gv2gxl.c index 4a2ce69d7..64f493117 100644 --- a/cmd/tools/gv2gxl.c +++ b/cmd/tools/gv2gxl.c @@ -438,9 +438,7 @@ static void writeDicts(Agraph_t * g, FILE * gxlFile) } } -static void -writeHdr(gxlstate_t * stp, Agraph_t * g, FILE * gxlFile, int top) -{ +static void writeHdr(gxlstate_t *stp, Agraph_t *g, FILE *gxlFile, bool top) { char *name; char *kind; char *uniqueName; @@ -527,7 +525,7 @@ static void writeSubgs(gxlstate_t * stp, Agraph_t * g, FILE * gxlFile) Agraph_t *subg; for (subg = agfstsubg(g); subg; subg = agnxtsubg(subg)) { - writeHdr(stp, subg, gxlFile, FALSE); + writeHdr(stp, subg, gxlFile, false); writeBody(stp, subg, gxlFile); writeTrl(subg, gxlFile, FALSE); } @@ -869,7 +867,7 @@ void gv_to_gxl(Agraph_t * g, FILE * gxlFile) fprintf(gxlFile, "\n"); fprintf(gxlFile, "\n"); - writeHdr(stp, g, gxlFile, TRUE); + writeHdr(stp, g, gxlFile, true); writeBody(stp, g, gxlFile); writeTrl(g, gxlFile, TRUE); -- 2.40.0