Skip to content

Commit

Permalink
Git.xs: older perl do not know const char *
Browse files Browse the repository at this point in the history
Both of these casts _should_ be safe, since you do not want to muck around
with the version or the path anyway.

Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Johannes Schindelin authored and Junio C Hamano committed Jul 3, 2006
1 parent e2a3871 commit d78f099
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions perl/Git.xs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ BOOT:
# /* TODO: xs_call_gate(). See Git.pm. */


const char *
char *
xs_version()
CODE:
{
Expand All @@ -69,11 +69,11 @@ OUTPUT:
RETVAL


const char *
char *
xs_exec_path()
CODE:
{
RETVAL = git_exec_path();
RETVAL = (char *)git_exec_path();
}
OUTPUT:
RETVAL
Expand Down

0 comments on commit d78f099

Please sign in to comment.