22 lines
973 B
Plaintext
22 lines
973 B
Plaintext
$OpenBSD: patch-dpid_main_c,v 1.5 2013/04/19 14:33:51 bcallah Exp $
|
|
--- dpid/main.c.orig Sun Jan 27 12:26:38 2013
|
|
+++ dpid/main.c Thu Apr 18 12:25:04 2013
|
|
@@ -70,7 +70,7 @@ static int start_filter_plugin(struct dp dpi_attr)
|
|
}
|
|
if (pid == 0) {
|
|
/* Child, start plugin */
|
|
- if (execl(dpi_attr.path, dpi_attr.path, (char*)NULL) == -1) {
|
|
+ if (execl(dpi_attr.path, dpi_attr.path, (void *)NULL) == -1) {
|
|
ERRMSG("start_plugin", "execl", errno);
|
|
MSG_ERR("ERROR in child proc for %s\n", dpi_attr.path);
|
|
exit(1);
|
|
@@ -102,7 +102,7 @@ static void start_server_plugin(struct dp dpi_attr)
|
|
MSG_ERR("ERROR in child proc for %s\n", dpi_attr.path);
|
|
exit(1);
|
|
}
|
|
- if (execl(dpi_attr.path, dpi_attr.path, (char*)NULL) == -1) {
|
|
+ if (execl(dpi_attr.path, dpi_attr.path, (void *)NULL) == -1) {
|
|
ERRMSG("start_plugin", "execl", errno);
|
|
MSG_ERR("ERROR in child proc for %s\n", dpi_attr.path);
|
|
exit(1);
|