Skip to content

Commit

Permalink
Made the string passed to print_tree const char*
Browse files Browse the repository at this point in the history
  • Loading branch information
12345ieee committed Apr 23, 2015
1 parent 4628f16 commit 56b695a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/crit_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ void print_equations_Y(gemY* gemf)
free(p_gems);
}

void print_tree_Y(gemY* gemf, char* prefix)
void print_tree_Y(gemY* gemf, const char* prefix)
{
if (gemf->grade==0) printf("-\n");
else if (gemf->father==NULL) {
Expand Down
2 changes: 1 addition & 1 deletion include/leech_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ void print_equations_O(gemO* gemf)
free(p_gems);
}

void print_tree_O(gemO* gemf, char* prefix)
void print_tree_O(gemO* gemf, const char* prefix)
{
if (gemf->grade==0) printf("-\n");
else if (gemf->father==NULL) {
Expand Down
2 changes: 1 addition & 1 deletion include/print_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ void print_equations(gem* gemf)
free(p_gems);
}

void print_tree(gem* gemf, char* prefix)
void print_tree(gem* gemf, const char* prefix)
{
if (gemf->father==NULL) {
printf("─ g1 %c\n",gem_color(gemf));
Expand Down

0 comments on commit 56b695a

Please sign in to comment.