summaryrefslogtreecommitdiff
path: root/src/rpc
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2023-09-09 11:57:19 +0000
committerLaurent Bercot <ska@appnovation.com>2023-09-09 11:57:19 +0000
commita545e8e74821a3c3281c886283e43a830afe62f0 (patch)
treedda82a14dc16a5c2960f66c3f36a612e387ff3cb /src/rpc
parent065bafd5813754cff8590a0e50b2b624daf58adf (diff)
downloadskabus-a545e8e74821a3c3281c886283e43a830afe62f0.tar.xz
Adapt to skalibs-2.14
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/rpc')
-rw-r--r--src/rpc/skabus-rpcc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rpc/skabus-rpcc.c b/src/rpc/skabus-rpcc.c
index 5b35925..621b59c 100644
--- a/src/rpc/skabus-rpcc.c
+++ b/src/rpc/skabus-rpcc.c
@@ -23,6 +23,7 @@
#include <skalibs/sig.h>
#include <skalibs/stralloc.h>
#include <skalibs/bufalloc.h>
+#include <skalibs/cspawn.h>
#include <skalibs/djbunix.h>
#include <skalibs/sgetopt.h>
#include <skalibs/tai.h>
@@ -143,7 +144,7 @@ static int interface_add (char const *ifname, char const *ifprog, char const *re
{
uint32_t yy ;
interface_t *y ;
- int fd[2] ;
+ int fd[2] = { 0, 1 } ;
tain deadline ;
skabus_rpc_interface_t ifbody = { .f = &rclient_function, .cancelf = &rclient_cancel_function, .aux = y }
char const *argv[4] = { EXECLINE_EXTBINPREFIX "execlineb", "-Pc", ifprog, 0 } ;