git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] Git.xs: older perl do not know const char *

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Jul 2, 2006, 09:53 UTC
Message-ID
<Pine.LNX.4.63.0607021152200.29667@wbgn013.biozentrum.uni-wuerzburg.de>

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>
---
 perl/Git.xs |    6 +++---
 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
Next: Petr Baudis
Message 1 of 3 in “Git.xs: older perl do not know const char *”
  1. Git.xs: older perl do not know const char *Johannes Schindelin, Jul 2, 2006
  2. Petr BaudisJul 2, 2006
  3. Junio C HamanoJul 2, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.