openbsd-ports/devel/git/patches/patch-builtin-help_c
bernd 5c0b50e772 Update to git-1.6.4.
Tested by Simon Kuhnle, sturm@, msf@ and Daniel Dickman.
Thanks!
2009-08-17 14:47:54 +00:00

52 lines
1.8 KiB
Plaintext

$OpenBSD: patch-builtin-help_c,v 1.4 2009/08/17 14:47:54 bernd Exp $
Fix "warning: missing sentinel in function call" on 64bit archs.
--- builtin-help.c.orig Wed Jul 29 10:18:18 2009
+++ builtin-help.c Sat Aug 1 10:41:01 2009
@@ -119,7 +119,7 @@ static void exec_woman_emacs(const char *path, const c
if (!path)
path = "emacsclient";
strbuf_addf(&man_page, "(woman \"%s\")", page);
- execlp(path, "emacsclient", "-e", man_page.buf, NULL);
+ execlp(path, "emacsclient", "-e", man_page.buf, (void *)NULL);
warning("failed to exec '%s': %s", path, strerror(errno));
}
}
@@ -147,7 +147,7 @@ static void exec_man_konqueror(const char *path, const
} else
path = "kfmclient";
strbuf_addf(&man_page, "man:%s(1)", page);
- execlp(path, filename, "newTab", man_page.buf, NULL);
+ execlp(path, filename, "newTab", man_page.buf, (void *)NULL);
warning("failed to exec '%s': %s", path, strerror(errno));
}
}
@@ -156,7 +156,7 @@ static void exec_man_man(const char *path, const char
{
if (!path)
path = "man";
- execlp(path, "man", page, NULL);
+ execlp(path, "man", page, (void *)NULL);
warning("failed to exec '%s': %s", path, strerror(errno));
}
@@ -164,7 +164,7 @@ static void exec_man_cmd(const char *cmd, const char *
{
struct strbuf shell_cmd = STRBUF_INIT;
strbuf_addf(&shell_cmd, "%s %s", cmd, page);
- execl("/bin/sh", "sh", "-c", shell_cmd.buf, NULL);
+ execl("/bin/sh", "sh", "-c", shell_cmd.buf, (void *)NULL);
warning("failed to exec '%s': %s", cmd, strerror(errno));
}
@@ -371,7 +371,7 @@ static void show_info_page(const char *git_cmd)
{
const char *page = cmd_to_page(git_cmd);
setenv("INFOPATH", system_path(GIT_INFO_PATH), 1);
- execlp("info", "info", "gitman", page, NULL);
+ execlp("info", "info", "gitman", page, (void *)NULL);
}
static void get_html_page_path(struct strbuf *page_path, const char *page)