summaryrefslogtreecommitdiff
path: root/net/honeyd/files/patch-rrdtool.c
blob: 8e0f246c2021b664395c8e33bf8c6c931ac77476 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- rrdtool.c.orig	Thu Apr 14 16:07:26 2005
+++ rrdtool.c	Thu Apr 14 15:31:15 2005
@@ -444,7 +444,7 @@
 int
 rrdtool_fork(struct rrdtool_drv *drv)
 {
-	char *argv[3];
+	const char *argv[3];
 	int pair[2];
 	sigset_t sigmask;
 
@@ -485,7 +485,7 @@
 
 		close(pair[1]);
 
-		if (execvp(drv->bin_path, argv) == -1)
+		if (execvp(drv->bin_path, (char *const *)argv) == -1)
 			err(1, "%s: execv(%s)", __func__, drv->bin_path);
 
 		/* NOT REACHED */