summaryrefslogtreecommitdiff
path: root/perl
diff options
context:
space:
mode:
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>2006-07-02 09:53:03 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-07-03 00:14:44 (GMT)
commitd78f099d8956947576cd5ccc1c5c13f94075b476 (patch)
tree813d3cca04b6d20ff164ea61f256cd3bd37305ce /perl
parente2a38710941775761298d0bd7e6be2e7039fcd3d (diff)
downloadgit-d78f099d8956947576cd5ccc1c5c13f94075b476.zip
git-d78f099d8956947576cd5ccc1c5c13f94075b476.tar.gz
git-d78f099d8956947576cd5ccc1c5c13f94075b476.tar.bz2
Git.xs: older perl do not know const char *
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>
Diffstat (limited to 'perl')
-rw-r--r--perl/Git.xs6
1 files changed, 3 insertions, 3 deletions
diff --git a/perl/Git.xs b/perl/Git.xs
index 51bfac3..c824210 100644
--- a/perl/Git.xs
+++ b/perl/Git.xs
@@ -59,7 +59,7 @@ BOOT:
# /* TODO: xs_call_gate(). See Git.pm. */
-const char *
+char *
xs_version()
CODE:
{
@@ -69,11 +69,11 @@ OUTPUT:
RETVAL
-const char *
+char *
xs_exec_path()
CODE:
{
- RETVAL = git_exec_path();
+ RETVAL = (char *)git_exec_path();
}
OUTPUT:
RETVAL