From d41e393e5842055706c7ae5af59fa5d83d83afdd Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Fri, 12 Nov 2021 19:36:37 -0800 Subject: [PATCH] gvcolor: remove unnecessary parens --- cmd/tools/gvcolor.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/tools/gvcolor.c b/cmd/tools/gvcolor.c index 42c378c7b..771300f6f 100644 --- a/cmd/tools/gvcolor.c +++ b/cmd/tools/gvcolor.c @@ -63,7 +63,7 @@ static int cmpf(Agnode_t ** n0, Agnode_t ** n1) static void setcolor(char *p, double *v) { char buf[64]; - if ((sscanf(p, "%lf %lf %lf", v, v + 1, v + 2) != 3) && p[0]) { + if (sscanf(p, "%lf %lf %lf", v, v + 1, v + 2) != 3 && p[0]) { colorxlate(p, buf); sscanf(buf, "%lf %lf %lf", v, v + 1, v + 2); } @@ -129,9 +129,9 @@ static void color(Agraph_t * g) if ((p = agget(g, "Defcolor"))) setcolor(p, Defcolor); - if ((p = agget(g, "rankdir")) && (p[0] == 'L')) + if ((p = agget(g, "rankdir")) && p[0] == 'L') LR = 1; - if ((p = agget(g, "flow")) && (p[0] == 'b')) + if ((p = agget(g, "flow")) && p[0] == 'b') Forward = 0; if ((p = agget(g, "saturation"))) { if (sscanf(p, "%lf,%lf", &lowsat, &highsat) == 2) { -- 2.40.0