Skip to content

Commit

Permalink
lib: Remove global xfile.h includes
Browse files Browse the repository at this point in the history
This makes it more obvious where this legacy code is used

Signed-off-by: Volker Lendecke <[email protected]>
Reviewed-by: Jeremy Allison <[email protected]>

Autobuild-User(master): Jeremy Allison <[email protected]>
Autobuild-Date(master): Sun Nov 20 06:23:19 CET 2016 on sn-devel-144
  • Loading branch information
vlendec authored and jrasamba committed Nov 20, 2016
1 parent c06b78d commit df9e7c7
Show file tree
Hide file tree
Showing 15 changed files with 12 additions and 3 deletions.
1 change: 0 additions & 1 deletion lib/util/samba_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ extern const char *panic_action;

#include "lib/util/time.h"
#include "lib/util/data_blob.h"
#include "lib/util/xfile.h"
#include "lib/util/byteorder.h"
#include "lib/util/talloc_stack.h"

Expand Down
1 change: 1 addition & 0 deletions libcli/smbreadline/smbreadline.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#include "system/select.h"
#include "system/readline.h"
#include "libcli/smbreadline/smbreadline.h"
#include "lib/util/xfile.h"

#undef malloc

Expand Down
1 change: 1 addition & 0 deletions source3/auth/user_util.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include "includes.h"
#include "system/filesys.h"
#include "auth.h"
#include "lib/util/xfile.h"

/*******************************************************************
Map a username from a dos name to a unix name by looking in the username
Expand Down
1 change: 1 addition & 0 deletions source3/client/client.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
#include "libsmb/nmblib.h"
#include "include/ntioctl.h"
#include "../libcli/smb/smbXcli_base.h"
#include "lib/util/xfile.h"

#ifndef REGISTER
#define REGISTER 0
Expand Down
1 change: 0 additions & 1 deletion source3/include/includes.h
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,6 @@ typedef char fstring[FSTRING_LEN];
/* Lists, trees, caching, database... */
#include "../lib/util/samba_util.h"
#include "../lib/util/util_net.h"
#include "../lib/util/xfile.h"
#include "../lib/util/memory.h"
#include "../lib/util/attr.h"
#include "../lib/util/tsort.h"
Expand Down
1 change: 1 addition & 0 deletions source3/lib/popt_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#include "system/filesys.h"
#include "popt_common.h"
#include "lib/param/param.h"
#include "lib/util/xfile.h"

/* Handle command line options:
* -d,--debuglevel
Expand Down
1 change: 1 addition & 0 deletions source3/modules/vfs_expand_msdfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#include "smbd/globals.h"
#include "auth.h"
#include "../lib/tsocket/tsocket.h"
#include "lib/util/xfile.h"

#undef DBGC_CLASS
#define DBGC_CLASS DBGC_VFS
Expand Down
1 change: 1 addition & 0 deletions source3/nmbd/nmbd.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#define SYNC_DNS 1
#endif

#include "lib/util/xfile.h"
#include "libsmb/nmblib.h"
#include "nmbd/nmbd_proto.h"

Expand Down
1 change: 1 addition & 0 deletions source3/printing/print_aix.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#include "includes.h"
#include "system/filesys.h"
#include "printing/pcap.h"
#include "lib/util/xfile.h"

#ifdef AIX
bool aix_cache_reload(struct pcap_cache **_pcache)
Expand Down
1 change: 1 addition & 0 deletions source3/printing/print_standard.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
#include "includes.h"
#include "system/filesys.h"
#include "printing/pcap.h"
#include "lib/util/xfile.h"

/* handle standard printcap - moved from pcap_printer_fn() */
bool std_pcap_cache_reload(const char *pcap_name, struct pcap_cache **_pcache)
Expand Down
1 change: 1 addition & 0 deletions source3/rpc_server/svcctl/srv_svcctl_reg.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
#include "rpc_server/svcctl/srv_svcctl_reg.h"
#include "auth.h"
#include "registry/reg_backend_db.h"
#include "lib/util/xfile.h"

#undef DBGC_CLASS
#define DBGC_CLASS DBGC_REGISTRY
Expand Down
1 change: 1 addition & 0 deletions source3/utils/ntlm_auth.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
#include "nsswitch/libwbclient/wbclient.h"
#include "lib/param/loadparm.h"
#include "lib/util/base64.h"
#include "lib/util/xfile.h"

#if HAVE_KRB5
#include "auth/kerberos/pac_utils.h"
Expand Down
1 change: 1 addition & 0 deletions source3/winbindd/idmap_hash/mapfile.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#include "idmap.h"
#include "idmap_hash.h"
#include <stdio.h>
#include "lib/util/xfile.h"

XFILE *lw_map_file = NULL;

Expand Down
1 change: 0 additions & 1 deletion source4/include/includes.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@
#ifndef _PRINTF_ATTRIBUTE
#define _PRINTF_ATTRIBUTE(a1, a2) PRINTF_ATTRIBUTE(a1, a2)
#endif
#include "../lib/util/xfile.h"
#include "../lib/util/attr.h"

/* debug.h need to be included before samba_util.h for the macro SMB_ASSERT */
Expand Down
1 change: 1 addition & 0 deletions source4/utils/ntlm_auth.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
#include "auth/ntlmssp/ntlmssp.h"
#include "param/param.h"
#include "lib/util/base64.h"
#include "lib/util/xfile.h"

#define INITIAL_BUFFER_SIZE 300
#define MAX_BUFFER_SIZE 63000
Expand Down

0 comments on commit df9e7c7

Please sign in to comment.