]> granicus.if.org Git - graphviz/commitdiff
expr gen: remove dereferencing and parens on function pointer
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Fri, 5 Aug 2022 01:48:41 +0000 (18:48 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 6 Aug 2022 17:10:30 +0000 (10:10 -0700)
The compiler knows how to call through a function pointer without needing to be
explicitly told.

lib/expr/excc.c

index 9e40ba739df940a8b867d3a4ee98670b2b9d6dbb..7b872e3111ba59704d6b44fd426d20bdaeacaad2 100644 (file)
@@ -295,7 +295,7 @@ gen(Excc_t* cc, Exnode_t* expr)
                return;
        case ID:
                if (cc->ccdisc->ccf)
-                       (*cc->ccdisc->ccf)(cc, expr, expr->data.variable.symbol, expr->data.variable.reference, expr->data.variable.index, cc->ccdisc);
+                       cc->ccdisc->ccf(cc, expr, expr->data.variable.symbol, expr->data.variable.reference, expr->data.variable.index, cc->ccdisc);
                else
                        sfprintf(cc->ccdisc->text, "%s", expr->data.variable.symbol->name);
                return;