summaryrefslogtreecommitdiff
path: root/src/runtime/c/utils
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/c/utils')
-rw-r--r--src/runtime/c/utils/pgf-service.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/runtime/c/utils/pgf-service.c b/src/runtime/c/utils/pgf-service.c
index b0cb190b8..b18cfd603 100644
--- a/src/runtime/c/utils/pgf-service.c
+++ b/src/runtime/c/utils/pgf-service.c
@@ -56,7 +56,7 @@ url_escape(char *str)
}
static int
-render(PgfExpr expr, GuPool* pool)
+render(PgfPGF* pgf, PgfExpr expr, GuPool* pool)
{
int pid;
int pc[2]; /* Parent to child pipe */
@@ -94,7 +94,7 @@ render(PgfExpr expr, GuPool* pool)
GuWriter* wtr = gu_new_utf8_writer(out, pool);
GuExn* err = gu_new_exn(NULL, gu_kind(type), pool);
- pgf_graphviz_abstract_tree(expr, wtr, err);
+ pgf_graphviz_abstract_tree(pgf, expr, wtr, err);
fclose(fstream);
close(cp[1]);
@@ -275,7 +275,7 @@ int main ()
FCGI_printf("Status: 200 OK\r\n");
if (to_concr == NULL) {
FCGI_printf("Content-type: image/svg+xml\r\n\r\n");
- render(ep->expr, ppool);
+ render(pgf, ep->expr, ppool);
} else {
FCGI_printf("Content-type: text/plain; charset=utf-8\r\n\r\n");
linearize(to_concr, ep->expr, ppool);