lib/util: inline lib/util/util_runcmd.h again
authorStefan Metzmacher <metze@samba.org>
Sat, 2 Feb 2019 12:09:37 +0000 (13:09 +0100)
committerVolker Lendecke <vl@samba.org>
Fri, 8 Feb 2019 01:54:20 +0000 (02:54 +0100)
samba_runcmd_state should not be exposed!

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Fri Feb  8 02:54:20 CET 2019 on sn-devel-144

lib/util/util_runcmd.c
lib/util/util_runcmd.h [deleted file]

index 78ac77f4946737d6ee4e6bdaab58b35a1b9f2413..3bb4cd83f68cf4964581d8a32942d2d3e5329793 100644 (file)
 
 #include "includes.h"
 #include "system/filesys.h"
+#include <tevent.h>
 #include "../lib/util/tevent_unix.h"
-#include "../lib/util/util_runcmd.h"
 #include "../lib/util/tfork.h"
 #include "../lib/util/sys_rw.h"
 
+struct samba_runcmd_state {
+       int stdout_log_level;
+       int stderr_log_level;
+       struct tevent_fd *fde_stdout;
+       struct tevent_fd *fde_stderr;
+       struct tevent_fd *fde_status;
+       int fd_stdin, fd_stdout, fd_stderr, fd_status;
+       char *arg0;
+       pid_t pid;
+       struct tfork *tfork;
+       char buf[1024];
+       uint16_t buf_used;
+};
+
 static void samba_runcmd_cleanup_fn(struct tevent_req *req,
                                    enum tevent_req_state req_state)
 {
diff --git a/lib/util/util_runcmd.h b/lib/util/util_runcmd.h
deleted file mode 100644 (file)
index 5532961..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-/*
-   Unix SMB/CIFS implementation.
-
-   run a child command
-
-   Copyright (C) Andrew Tridgell 2010
-
-   This program is free software; you can redistribute it and/or modify
-   it under the terms of the GNU General Public License as published by
-   the Free Software Foundation; either version 3 of the License, or
-   (at your option) any later version.
-
-   This program is distributed in the hope that it will be useful,
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-   GNU General Public License for more details.
-
-   You should have received a copy of the GNU General Public License
-   along with this program.  If not, see <http://www.gnu.org/licenses/>.
-
-*/
-
-#include <tevent.h>
-
-struct samba_runcmd_state {
-       int stdout_log_level;
-       int stderr_log_level;
-       struct tevent_fd *fde_stdout;
-       struct tevent_fd *fde_stderr;
-       struct tevent_fd *fde_status;
-       int fd_stdin, fd_stdout, fd_stderr, fd_status;
-       char *arg0;
-       pid_t pid;
-       struct tfork *tfork;
-       char buf[1024];
-       uint16_t buf_used;
-};