summaryrefslogtreecommitdiff
path: root/net/honeyd/files/patch-rrdtool.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/honeyd/files/patch-rrdtool.c')
-rw-r--r--net/honeyd/files/patch-rrdtool.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/net/honeyd/files/patch-rrdtool.c b/net/honeyd/files/patch-rrdtool.c
new file mode 100644
index 000000000000..8e0f246c2021
--- /dev/null
+++ b/net/honeyd/files/patch-rrdtool.c
@@ -0,0 +1,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 */