summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2010-08-03 00:03:03 +0200
committerGünther Deschner <gd@samba.org>2010-08-06 15:43:38 +0200
commit002ac5681f95760968bc5111cc39e849a0449c44 (patch)
treeec6b269c000c464607470fc4bb1c7f53d6e5ef1a /source3/utils
parent164ee0fe56af9e4b1f30c83165b0580220ac9531 (diff)
downloadsamba-002ac5681f95760968bc5111cc39e849a0449c44.tar.gz
samba-002ac5681f95760968bc5111cc39e849a0449c44.tar.bz2
samba-002ac5681f95760968bc5111cc39e849a0449c44.zip
s3-net: only include netapi header when needed.
Guenther
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/net.c1
-rw-r--r--source3/utils/net.h1
-rw-r--r--source3/utils/net_dom.c1
-rw-r--r--source3/utils/net_rpc.c1
-rw-r--r--source3/utils/net_rpc_shell.c1
5 files changed, 4 insertions, 1 deletions
diff --git a/source3/utils/net.c b/source3/utils/net.c
index d9a1bf6912..eea13ea138 100644
--- a/source3/utils/net.c
+++ b/source3/utils/net.c
@@ -44,6 +44,7 @@
#include "popt_common.h"
#include "utils/net.h"
#include "secrets.h"
+#include "lib/netapi/netapi.h"
extern bool AllowDebugChange;
diff --git a/source3/utils/net.h b/source3/utils/net.h
index 39a431315e..fc6addf231 100644
--- a/source3/utils/net.h
+++ b/source3/utils/net.h
@@ -22,7 +22,6 @@
* include
*/
-#include "lib/netapi/netapi.h"
#include "localedir.h"
#ifdef HAVE_LIBINTL_H
diff --git a/source3/utils/net_dom.c b/source3/utils/net_dom.c
index 89cc228f47..d07a1d4f04 100644
--- a/source3/utils/net_dom.c
+++ b/source3/utils/net_dom.c
@@ -21,6 +21,7 @@
#include "utils/net.h"
#include "../librpc/gen_ndr/cli_initshutdown.h"
#include "../librpc/gen_ndr/ndr_winreg.h"
+#include "lib/netapi/netapi.h"
int net_dom_usage(struct net_context *c, int argc, const char **argv)
{
diff --git a/source3/utils/net_rpc.c b/source3/utils/net_rpc.c
index 00ebe13af5..56eb42e0ed 100644
--- a/source3/utils/net_rpc.c
+++ b/source3/utils/net_rpc.c
@@ -34,6 +34,7 @@
#include "../librpc/gen_ndr/cli_initshutdown.h"
#include "../librpc/gen_ndr/cli_winreg.h"
#include "secrets.h"
+#include "lib/netapi/netapi.h"
static int net_mode_share;
static bool sync_files(struct copy_clistate *cp_clistate, const char *mask);
diff --git a/source3/utils/net_rpc_shell.c b/source3/utils/net_rpc_shell.c
index b04e6bd5b1..d005da63e7 100644
--- a/source3/utils/net_rpc_shell.c
+++ b/source3/utils/net_rpc_shell.c
@@ -22,6 +22,7 @@
#include "popt_common.h"
#include "utils/net.h"
#include "../librpc/gen_ndr/ndr_samr.h"
+#include "lib/netapi/netapi.h"
static NTSTATUS rpc_sh_info(struct net_context *c,
TALLOC_CTX *mem_ctx, struct rpc_sh_ctx *ctx,