@matheusbsbs / matheus-bagliano / commits / d78f099d89
Fork 0

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>

Johannes Schindelin committed Jul 2, 2006 at 11:53 UTC d78f099d8956947576cd5ccc1c5c13f94075b476
1 file changed +3 -3
perl/Git.xs
+3 -3
@@ -59,7 +59,7 @@ BOOT:
59 # /* TODO: xs_call_gate(). See Git.pm. */
60
61
62 -const char *
62 +char *
63 xs_version()
64 CODE:
65 {
@@ -69,11 +69,11 @@ OUTPUT:
69 RETVAL
70
71
72 -const char *
72 +char *
73 xs_exec_path()
74 CODE:
75 {
76 - RETVAL = git_exec_path();
76 + RETVAL = (char *)git_exec_path();
77 }
78 OUTPUT:
79 RETVAL