X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=ofproto%2Fexecuter.c;h=f78ec33807fcb94fd0897618693949d0858a72eb;hb=0b1fae1b73c4c6cfc84edafc6845a17257191e42;hp=bc42ccf8693561bec579cb7832ee591dcff587b4;hpb=39fb08818bbd9c438dbf23caa89937c663451b5a;p=sliver-openvswitch.git diff --git a/ofproto/executer.c b/ofproto/executer.c index bc42ccf86..f78ec3380 100644 --- a/ofproto/executer.c +++ b/ofproto/executer.c @@ -434,7 +434,7 @@ executer_rconn_closing(struct executer *e, struct rconn *rconn) static void sigchld_handler(int signr UNUSED) { - write(signal_fds[1], "", 1); + ignore(write(signal_fds[1], "", 1)); } int @@ -471,7 +471,7 @@ executer_create(const char *command_acl, const char *command_dir, return errno; } - e = xcalloc(1, sizeof *e); + e = xzalloc(sizeof *e); e->command_acl = xstrdup(command_acl); e->command_dir = (command_dir ? xstrdup(command_dir)