[Openvpn-devel] build: Fix another compile warning in console_systemd.c

Message ID 20181008180017.31413-1-davids@openvpn.net
State Accepted
Headers show
Series [Openvpn-devel] build: Fix another compile warning in console_systemd.c | expand

Commit Message

David Sommerseth Oct. 8, 2018, 7 a.m. UTC
console_systemd.c: In function ‘get_console_input_systemd’:
console_systemd.c:75:5: warning: implicit declaration of function ‘openvpn_popen’ [-Wimplicit-function-declaration]
     if ((std_out = openvpn_popen(&argv, NULL)) < 0)

Signed-off-by: David Sommerseth <davids@openvpn.net>
---
 src/openvpn/console_systemd.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Gert Doering Oct. 8, 2018, 7:14 a.m. UTC | #1
Acked-by: Gert Doering <gert@greenie.muc.de>

Your patch has been applied to the master branch.

commit 02b392a2ca1e94b0d87c8f643ee887f1b34558ed
Author: David Sommerseth
Date:   Mon Oct 8 21:00:17 2018 +0300

     build: Fix another compile warning in console_systemd.c

     Signed-off-by: David Sommerseth <davids@openvpn.net>
     Acked-by: Gert Doering <gert@greenie.muc.de>
     Message-Id: <20181008180017.31413-1-davids@openvpn.net>
     URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg17660.html
     Signed-off-by: Gert Doering <gert@greenie.muc.de>


--
kind regards,

Gert Doering

Patch

diff --git a/src/openvpn/console_systemd.c b/src/openvpn/console_systemd.c
index e7a72ae3..8d9e825b 100644
--- a/src/openvpn/console_systemd.c
+++ b/src/openvpn/console_systemd.c
@@ -33,6 +33,7 @@ 
 #include "syshead.h"
 #include "console.h"
 #include "misc.h"
+#include "run_command.h"
 
 #include <systemd/sd-daemon.h>