]> granicus.if.org Git - graphviz/commitdiff
expr: [nfc] remove unnecessary parens and dereference of 'exitf'
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 26 Feb 2022 19:03:00 +0000 (11:03 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 27 Feb 2022 22:57:01 +0000 (14:57 -0800)
The C compiler knows how to dereference and call through a function pointer
without needing this manual instruction.

lib/expr/exeval.c

index 366153f4115f148e9858f64c098e71e44014e5a6..f9f14cd7d7f26f625ff4781379fdd620731a8d1e 100644 (file)
@@ -1243,7 +1243,7 @@ eval(Expr_t* ex, Exnode_t* expr, void* env)
        case EXIT:
                v = eval(ex, x, env);
                if (ex->disc->exitf)
-                       (*ex->disc->exitf) (ex, env, (int)v.integer);
+                       ex->disc->exitf(ex, env, (int)v.integer);
                else
                        graphviz_exit((int)v.integer);
                /*NOTREACHED*/