$OpenBSD: patch-builtin-help_c,v 1.5 2009/11/17 16:29:42 bernd Exp $

Fix "warning: missing sentinel in function call" on 64bit archs.

--- builtin-help.c.orig	Mon Nov 16 23:14:46 2009
+++ builtin-help.c	Tue Nov 17 14:31:50 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);
 	die("no info viewer handled the request");
 }
 
