add const to node

This commit is contained in:
c9s 2014-06-01 14:54:16 +08:00
parent 7d69e79535
commit b139d8d3f2
2 changed files with 2 additions and 2 deletions

View file

@ -11,7 +11,7 @@
void r3_tree_build_ag_nodes(Agraph_t * g, Agnode_t * ag_parent_node, const node * n, int node_cnt); void r3_tree_build_ag_nodes(Agraph_t * g, Agnode_t * ag_parent_node, const node * n, int node_cnt);
int r3_tree_render_dot(node * tree); int r3_tree_render_dot(const node * tree);
int r3_tree_render_file(const node * tree, const char * format, const char * filename); int r3_tree_render_file(const node * tree, const char * format, const char * filename);

View file

@ -45,7 +45,7 @@ void r3_tree_build_ag_nodes(Agraph_t * g, Agnode_t * ag_parent_node, const node
/** /**
* Render a tree to tree graph image via graphviz (dot) * Render a tree to tree graph image via graphviz (dot)
*/ */
int r3_tree_render_dot(node * tree) int r3_tree_render_dot(const node * tree)
{ {
Agraph_t *g; Agraph_t *g;
/* set up a graphviz context - but only once even for multiple graphs */ /* set up a graphviz context - but only once even for multiple graphs */