const pointer

This commit is contained in:
c9s 2014-05-27 12:35:17 +08:00
parent f596c7392d
commit 60821aac0c
2 changed files with 2 additions and 2 deletions

View file

@ -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); 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); int r3_tree_render_dot(node * tree);

View file

@ -72,7 +72,7 @@ int r3_tree_render_dot(node * tree)
/** /**
* Render a tree to tree graph image via graphviz (dot) * 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; Agraph_t *g;