Skip to content

Commit

Permalink
add missing const to make C++ happy
Browse files Browse the repository at this point in the history
  • Loading branch information
stevengj committed Aug 6, 2015
1 parent 55cfad9 commit b78659e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/jlapi.c
Original file line number Diff line number Diff line change
Expand Up @@ -291,14 +291,14 @@ static const char *git_info_string(const char *fld) {

DLLEXPORT const char *jl_git_branch()
{
static char *branch = NULL;
static const char *branch = NULL;
if (!branch) branch = git_info_string("branch");
return branch;
}

DLLEXPORT const char *jl_git_commit()
{
static char *commit = NULL;
static const char *commit = NULL;
if (!commit) commit = git_info_string("commit");
return commit;
}
Expand Down

0 comments on commit b78659e

Please sign in to comment.