From: Matthew Fernandez Date: Fri, 5 Aug 2022 01:48:41 +0000 (-0700) Subject: expr gen: remove dereferencing and parens on function pointer X-Git-Tag: 5.0.1~18^2~18 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a906c04ddc8f162ea5bc7f25574c6677459c7fdf;p=graphviz expr gen: remove dereferencing and parens on function pointer The compiler knows how to call through a function pointer without needing to be explicitly told. --- diff --git a/lib/expr/excc.c b/lib/expr/excc.c index 9e40ba739..7b872e311 100644 --- a/lib/expr/excc.c +++ b/lib/expr/excc.c @@ -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;