summaryrefslogtreecommitdiff
path: root/chat/i2cb/patches/patch-ax
blob: 3d8439d67f1012353d7efd03afca80a2e49426b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
$NetBSD: patch-ax,v 1.1 2007/03/17 14:33:13 rillig Exp $

gcc4 on NetBSD 4 complains:
c_shell.c:52: warning: missing sentinel in function call
c_shell.c:54: warning: missing sentinel in function call

--- src/c_shell.c.orig	2000-03-15 23:13:28.000000000 +0100
+++ src/c_shell.c	2007-03-17 15:31:31.000000000 +0100
@@ -49,9 +49,9 @@ c_shell (TARGLIST)
 
 	if ((pid = fork()) == 0) {
 		if (shellout)
-			execlp(shell, shell, 0);
+			execlp(shell, shell, (char *)0);
 		else
-			execlp(shell, shell, "-c", mbuf, 0);
+			execlp(shell, shell, "-c", mbuf, (char *)0);
 
 		/* exec failed if we make it here */
 		sprintf(mbuf, "c_shell: can't run shell \"%s\"", shell);