s3-interfaces: only include interfaces.h where needed.
authorGünther Deschner <gd@samba.org>
Thu, 24 Feb 2011 22:51:28 +0000 (23:51 +0100)
committerGünther Deschner <gd@samba.org>
Wed, 16 Mar 2011 15:56:46 +0000 (16:56 +0100)
Guenther

source3/include/includes.h
source3/lib/access.c
source3/lib/interface.c
source3/lib/interfaces.c
source3/lib/util_sock.c

index 83ccf7860b3dd2a9d5b3b27b8e77a3f2dd8cf4d9..34e4211300447302f6295451549a6b442ba2b339 100644 (file)
@@ -543,7 +543,6 @@ extern void *cmdline_lp_ctx;
 #include "../lib/util/asn1.h"
 
 #include "libads/ads_status.h"
-#include "interfaces.h"
 #include "trans2.h"
 #include "../libcli/util/error.h"
 #include "ntioctl.h"
index b674144150a348a3445796ab029c8f6bf3652aa3..a7475a5edc3a6c8b1f9268834a56cd8972a0c36d 100644 (file)
@@ -12,6 +12,7 @@
 
 #include "includes.h"
 #include "memcache.h"
+#include "interfaces.h"
 
 #define NAME_INDEX 0
 #define ADDR_INDEX 1
index 79c62a7ae71b738d4afceafaa395942df804988a..30e94069a52724b3a32530cf0afecce9c3d4f7a8 100644 (file)
@@ -19,6 +19,7 @@
 */
 
 #include "includes.h"
+#include "interfaces.h"
 
 static struct iface_struct *probed_ifaces;
 static int total_probed;
index 5996fdee06b9740631db255113a6d7e08e6c4416..e40eaa91425b6b5c628c9cb4427fd32790b0248c 100644 (file)
@@ -19,6 +19,7 @@
 */
 
 #include "includes.h"
+#include "interfaces.h"
 
 /****************************************************************************
  Create a struct sockaddr_storage with the netmask bits set to 1.
index 73b69b4440d2788b64ace25f3431553bfd8ec821..3c9749509926b2336e7844676b77508559e414fe 100644 (file)
@@ -23,6 +23,7 @@
 #include "memcache.h"
 #include "../lib/async_req/async_sock.h"
 #include "../lib/util/select.h"
+#include "interfaces.h"
 
 /****************************************************************************
  Get a port number in host byte order from a sockaddr_storage.