From 60821aac0cc4ed0ae7aa4b21494ceffab5074270 Mon Sep 17 00:00:00 2001 From: c9s Date: Tue, 27 May 2014 12:35:17 +0800 Subject: [PATCH] const pointer --- include/r3.h | 2 +- src/gvc.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/r3.h b/include/r3.h index 649f224..9e9721a 100644 --- a/include/r3.h +++ b/include/r3.h @@ -153,7 +153,7 @@ node * r3_tree_insert_pathl_(node *tree, char *path, int path_len, route * route void r3_tree_dump(const node * n, int level); -int r3_tree_render_file(node * tree, char * format, char * filename); +int r3_tree_render_file(const node * tree, const char * format, char * filename); int r3_tree_render_dot(node * tree); diff --git a/src/gvc.c b/src/gvc.c index 6f75112..cb7c7ab 100644 --- a/src/gvc.c +++ b/src/gvc.c @@ -72,7 +72,7 @@ int r3_tree_render_dot(node * tree) /** * Render a tree to tree graph image via graphviz (dot) */ -int r3_tree_render_file(node * tree, char * format, char * filename) +int r3_tree_render_file(const node * tree, const char * format, char * filename) { Agraph_t *g;