summaryrefslogtreecommitdiffstats
path: root/source/smbd
diff options
context:
space:
mode:
Diffstat (limited to 'source/smbd')
-rw-r--r--source/smbd/auth.c3
-rw-r--r--source/smbd/auth_domain.c2
-rw-r--r--source/smbd/auth_rhosts.c6
-rw-r--r--source/smbd/auth_server.c4
-rw-r--r--source/smbd/auth_smbpasswd.c5
-rw-r--r--source/smbd/auth_unix.c4
-rw-r--r--source/smbd/auth_util.c3
-rw-r--r--source/smbd/blocking.c2
-rw-r--r--source/smbd/chgpasswd.c1
-rw-r--r--source/smbd/close.c2
-rw-r--r--source/smbd/conn.c2
-rw-r--r--source/smbd/connection.c3
-rw-r--r--source/smbd/dfree.c3
-rw-r--r--source/smbd/dir.c2
-rw-r--r--source/smbd/dosmode.c2
-rw-r--r--source/smbd/error.c2
-rw-r--r--source/smbd/fileio.c2
-rw-r--r--source/smbd/filename.c1
-rw-r--r--source/smbd/files.c2
-rw-r--r--source/smbd/groupname.c2
-rw-r--r--source/smbd/ipc.c1
-rw-r--r--source/smbd/lanman.c2
-rw-r--r--source/smbd/mangle.c2
-rw-r--r--source/smbd/message.c3
-rw-r--r--source/smbd/negprot.c1
-rw-r--r--source/smbd/notify.c2
-rw-r--r--source/smbd/notify_hash.c3
-rw-r--r--source/smbd/notify_kernel.c1
-rw-r--r--source/smbd/nttrans.c1
-rw-r--r--source/smbd/open.c2
-rw-r--r--source/smbd/oplock.c2
-rw-r--r--source/smbd/oplock_irix.c1
-rw-r--r--source/smbd/oplock_linux.c2
-rw-r--r--source/smbd/password.c1
-rw-r--r--source/smbd/pipes.c2
-rw-r--r--source/smbd/process.c2
-rw-r--r--source/smbd/quotas.c2
-rw-r--r--source/smbd/reply.c1
-rw-r--r--source/smbd/sec_ctx.c1
-rw-r--r--source/smbd/server.c2
-rw-r--r--source/smbd/service.c4
-rw-r--r--source/smbd/trans2.c1
-rw-r--r--source/smbd/uid.c2
-rw-r--r--source/smbd/vfs.c2
44 files changed, 2 insertions, 94 deletions
diff --git a/source/smbd/auth.c b/source/smbd/auth.c
index 6aa2714b0ba..e76324213ef 100644
--- a/source/smbd/auth.c
+++ b/source/smbd/auth.c
@@ -23,8 +23,6 @@
#include "includes.h"
-extern int DEBUGLEVEL;
-
/****************************************************************************
Check user is in correct domain if required
****************************************************************************/
@@ -257,4 +255,3 @@ BOOL password_ok(char *user, char *password, int pwlen)
return False;
}
-
diff --git a/source/smbd/auth_domain.c b/source/smbd/auth_domain.c
index 111f0f143c1..bcd41bacdba 100644
--- a/source/smbd/auth_domain.c
+++ b/source/smbd/auth_domain.c
@@ -22,8 +22,6 @@
#include "includes.h"
-extern int DEBUGLEVEL;
-
BOOL global_machine_password_needs_changing = False;
/****************************************************************************
diff --git a/source/smbd/auth_rhosts.c b/source/smbd/auth_rhosts.c
index e319d8d5f81..cd1bf57f865 100644
--- a/source/smbd/auth_rhosts.c
+++ b/source/smbd/auth_rhosts.c
@@ -21,9 +21,6 @@
#include "includes.h"
-extern int DEBUGLEVEL;
-
-
/****************************************************************************
Read the a hosts.equiv or .rhosts file and check if it
allows this user from this machine.
@@ -181,6 +178,3 @@ NTSTATUS check_rhosts_security(const auth_usersupplied_info *user_info,
return nt_status;
}
-
-
-
diff --git a/source/smbd/auth_server.c b/source/smbd/auth_server.c
index e4c91c4dcbe..2574a52ef3d 100644
--- a/source/smbd/auth_server.c
+++ b/source/smbd/auth_server.c
@@ -22,8 +22,6 @@
#include "includes.h"
-extern int DEBUGLEVEL;
-
extern pstring global_myname;
/****************************************************************************
@@ -228,5 +226,3 @@ use this machine as the password server.\n"));
return(nt_status);
}
-
-
diff --git a/source/smbd/auth_smbpasswd.c b/source/smbd/auth_smbpasswd.c
index 835ade739fd..da223368b8f 100644
--- a/source/smbd/auth_smbpasswd.c
+++ b/source/smbd/auth_smbpasswd.c
@@ -23,8 +23,6 @@
#include "includes.h"
-extern int DEBUGLEVEL;
-
/****************************************************************************
core of smb password checking routine.
****************************************************************************/
@@ -319,6 +317,3 @@ NTSTATUS check_smbpasswd_security(const auth_usersupplied_info *user_info, auth_
pdb_free_sam(&sampass);
return nt_status;
}
-
-
-
diff --git a/source/smbd/auth_unix.c b/source/smbd/auth_unix.c
index 0d73988d8af..2f9034e3e54 100644
--- a/source/smbd/auth_unix.c
+++ b/source/smbd/auth_unix.c
@@ -21,8 +21,6 @@
#include "includes.h"
-extern int DEBUGLEVEL;
-
/****************************************************************************
update the encrypted smbpasswd file from the plaintext username and password
@@ -105,5 +103,3 @@ NTSTATUS check_unix_security(const auth_usersupplied_info *user_info, auth_serve
return nt_status;
}
-
-
diff --git a/source/smbd/auth_util.c b/source/smbd/auth_util.c
index 1967c32b9a1..d3b9aa7001e 100644
--- a/source/smbd/auth_util.c
+++ b/source/smbd/auth_util.c
@@ -19,9 +19,8 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-#include "includes.h"
-extern int DEBUGLEVEL;
+#include "includes.h"
/* Data to do lanman1/2 password challenge. */
static unsigned char saved_challenge[8];
diff --git a/source/smbd/blocking.c b/source/smbd/blocking.c
index cec15812543..a398a4c2a1b 100644
--- a/source/smbd/blocking.c
+++ b/source/smbd/blocking.c
@@ -20,7 +20,7 @@
*/
#include "includes.h"
-extern int DEBUGLEVEL;
+
extern char *OutBuffer;
/****************************************************************************
diff --git a/source/smbd/chgpasswd.c b/source/smbd/chgpasswd.c
index de490839607..fbcefd6128a 100644
--- a/source/smbd/chgpasswd.c
+++ b/source/smbd/chgpasswd.c
@@ -49,7 +49,6 @@
#include "includes.h"
-extern int DEBUGLEVEL;
extern struct passdb_ops pdb_ops;
static BOOL check_oem_password(char *user,
diff --git a/source/smbd/close.c b/source/smbd/close.c
index c92e084759d..5c8c7996f5e 100644
--- a/source/smbd/close.c
+++ b/source/smbd/close.c
@@ -21,8 +21,6 @@
#include "includes.h"
-extern int DEBUGLEVEL;
-
/****************************************************************************
run a file if it is a magic script
****************************************************************************/
diff --git a/source/smbd/conn.c b/source/smbd/conn.c
index 08704927c56..f9d0ffc9bd1 100644
--- a/source/smbd/conn.c
+++ b/source/smbd/conn.c
@@ -21,8 +21,6 @@
#include "includes.h"
-extern int DEBUGLEVEL;
-
/* set these to define the limits of the server. NOTE These are on a
per-client basis. Thus any one machine can't connect to more than
MAX_CONNECTIONS services, but any number of machines may connect at
diff --git a/source/smbd/connection.c b/source/smbd/connection.c
index e1b2bc071ae..f6da678cb18 100644
--- a/source/smbd/connection.c
+++ b/source/smbd/connection.c
@@ -21,12 +21,9 @@
#include "includes.h"
-
extern fstring remote_machine;
static TDB_CONTEXT *tdb;
-extern int DEBUGLEVEL;
-
/****************************************************************************
Return the connection tdb context (used for message send all).
****************************************************************************/
diff --git a/source/smbd/dfree.c b/source/smbd/dfree.c
index 7848309a5ea..51f06149419 100644
--- a/source/smbd/dfree.c
+++ b/source/smbd/dfree.c
@@ -21,9 +21,6 @@
#include "includes.h"
-
-extern int DEBUGLEVEL;
-
/****************************************************************************
normalise for DOS usage
****************************************************************************/
diff --git a/source/smbd/dir.c b/source/smbd/dir.c
index c0c728fe8fb..59c8f1e97b4 100644
--- a/source/smbd/dir.c
+++ b/source/smbd/dir.c
@@ -21,8 +21,6 @@
#include "includes.h"
-extern int DEBUGLEVEL;
-
/*
This module implements directory related functions for Samba.
*/
diff --git a/source/smbd/dosmode.c b/source/smbd/dosmode.c
index 639e365d1bc..0f15ef25c24 100644
--- a/source/smbd/dosmode.c
+++ b/source/smbd/dosmode.c
@@ -21,8 +21,6 @@
#include "includes.h"
-extern int DEBUGLEVEL;
-
/****************************************************************************
change a dos mode to a unix mode
base permission for files:
diff --git a/source/smbd/error.c b/source/smbd/error.c
index 17606c62bed..913f2ac266a 100644
--- a/source/smbd/error.c
+++ b/source/smbd/error.c
@@ -21,8 +21,6 @@
#include "includes.h"
-extern int DEBUGLEVEL;
-
/* these can be set by some functions to override the error codes */
int unix_ERR_class=SMB_SUCCESS;
int unix_ERR_code=0;
diff --git a/source/smbd/fileio.c b/source/smbd/fileio.c
index 003bee84ed3..edf58d4a8ee 100644
--- a/source/smbd/fileio.c
+++ b/source/smbd/fileio.c
@@ -21,8 +21,6 @@
#include "includes.h"
-extern int DEBUGLEVEL;
-
static BOOL setup_write_cache(files_struct *, SMB_OFF_T);
/****************************************************************************
diff --git a/source/smbd/filename.c b/source/smbd/filename.c
index 17fa35c0d7d..5fdbef44fe8 100644
--- a/source/smbd/filename.c
+++ b/source/smbd/filename.c
@@ -27,7 +27,6 @@
#include "includes.h"
-extern int DEBUGLEVEL;
extern BOOL case_sensitive;
extern BOOL case_preserve;
extern BOOL short_case_preserve;
diff --git a/source/smbd/files.c b/source/smbd/files.c
index 4273c205cde..8c7fa930e1a 100644
--- a/source/smbd/files.c
+++ b/source/smbd/files.c
@@ -21,8 +21,6 @@
#include "includes.h"
-extern int DEBUGLEVEL;
-
static int real_max_open_files;
#define VALID_FNUM(fnum) (((fnum) >= 0) && ((fnum) < real_max_open_files))
diff --git a/source/smbd/groupname.c b/source/smbd/groupname.c
index eb2931d2a54..7d3dce131a4 100644
--- a/source/smbd/groupname.c
+++ b/source/smbd/groupname.c
@@ -22,10 +22,8 @@
#ifdef USING_GROUPNAME_MAP
#include "includes.h"
-extern int DEBUGLEVEL;
extern DOM_SID global_sam_sid;
-
/**************************************************************************
Groupname map functionality. The code loads a groupname map file and
(currently) loads it into a linked list. This is slow and memory
diff --git a/source/smbd/ipc.c b/source/smbd/ipc.c
index b1af01ff4c5..93a69255c03 100644
--- a/source/smbd/ipc.c
+++ b/source/smbd/ipc.c
@@ -28,7 +28,6 @@
#include "includes.h"
-extern int DEBUGLEVEL;
extern int max_send;
extern fstring local_machine;
diff --git a/source/smbd/lanman.c b/source/smbd/lanman.c
index b7acfa5f32a..088162c1261 100644
--- a/source/smbd/lanman.c
+++ b/source/smbd/lanman.c
@@ -33,8 +33,6 @@
#endif
#define CHECK_TYPES 0
-extern int DEBUGLEVEL;
-
extern fstring local_machine;
extern pstring global_myname;
extern fstring global_myworkgroup;
diff --git a/source/smbd/mangle.c b/source/smbd/mangle.c
index ae0164e1418..1c46afaea2e 100644
--- a/source/smbd/mangle.c
+++ b/source/smbd/mangle.c
@@ -52,7 +52,6 @@
* External Variables...
*/
-extern int DEBUGLEVEL; /* Global debug level. */
extern int case_default; /* Are conforming 8.3 names all upper or lower? */
extern BOOL case_mangle; /* If true, all chars in 8.3 should be same case. */
@@ -1540,4 +1539,3 @@ void mangle_test_code(void)
}
#endif /* TEST_MANGLE_CODE */
-
diff --git a/source/smbd/message.c b/source/smbd/message.c
index f2e88352ee1..7cc53e082c4 100644
--- a/source/smbd/message.c
+++ b/source/smbd/message.c
@@ -27,9 +27,6 @@
#include "includes.h"
/* look in server.c for some explanation of these variables */
-extern int DEBUGLEVEL;
-
-
static char msgbuf[1600];
static int msgpos;
static fstring msgfrom;
diff --git a/source/smbd/negprot.c b/source/smbd/negprot.c
index 82222e67256..e3a6701dcec 100644
--- a/source/smbd/negprot.c
+++ b/source/smbd/negprot.c
@@ -21,7 +21,6 @@
#include "includes.h"
-extern int DEBUGLEVEL;
extern int Protocol;
extern int max_recv;
extern fstring global_myworkgroup;
diff --git a/source/smbd/notify.c b/source/smbd/notify.c
index 68b51aeabb8..999821354e4 100644
--- a/source/smbd/notify.c
+++ b/source/smbd/notify.c
@@ -22,8 +22,6 @@
#include "includes.h"
-extern int DEBUGLEVEL;
-
static struct cnotify_fns *cnotify;
/****************************************************************************
diff --git a/source/smbd/notify_hash.c b/source/smbd/notify_hash.c
index 8157e1ff316..0c69dc78769 100644
--- a/source/smbd/notify_hash.c
+++ b/source/smbd/notify_hash.c
@@ -22,9 +22,6 @@
#include "includes.h"
-extern int DEBUGLEVEL;
-
-
struct change_data {
time_t last_check_time; /* time we last checked this entry */
time_t modify_time; /* Info from the directory we're monitoring. */
diff --git a/source/smbd/notify_kernel.c b/source/smbd/notify_kernel.c
index 4b84831550a..f618700bf0f 100644
--- a/source/smbd/notify_kernel.c
+++ b/source/smbd/notify_kernel.c
@@ -23,7 +23,6 @@
#if HAVE_KERNEL_CHANGE_NOTIFY
-extern int DEBUGLEVEL;
static VOLATILE sig_atomic_t fd_pending;
static VOLATILE sig_atomic_t signals_received;
static VOLATILE sig_atomic_t signals_processed;
diff --git a/source/smbd/nttrans.c b/source/smbd/nttrans.c
index c072a384747..2618a969130 100644
--- a/source/smbd/nttrans.c
+++ b/source/smbd/nttrans.c
@@ -21,7 +21,6 @@
#include "includes.h"
-extern int DEBUGLEVEL;
extern int Protocol;
extern int smb_read_error;
extern int global_oplock_break;
diff --git a/source/smbd/open.c b/source/smbd/open.c
index 6e6d5e1e83c..3578a82f8fb 100644
--- a/source/smbd/open.c
+++ b/source/smbd/open.c
@@ -22,8 +22,6 @@
#include "includes.h"
-extern int DEBUGLEVEL;
-
extern userdom_struct current_user_info;
extern uint16 global_oplock_port;
extern BOOL global_client_failed_oplock_break;
diff --git a/source/smbd/oplock.c b/source/smbd/oplock.c
index c17e63384f2..4e8e36b3aa6 100644
--- a/source/smbd/oplock.c
+++ b/source/smbd/oplock.c
@@ -21,8 +21,6 @@
#include "includes.h"
-extern int DEBUGLEVEL;
-
/* Oplock ipc UDP socket. */
static int oplock_sock = -1;
uint16 global_oplock_port = 0;
diff --git a/source/smbd/oplock_irix.c b/source/smbd/oplock_irix.c
index faf7e8e3c87..c6055fc3293 100644
--- a/source/smbd/oplock_irix.c
+++ b/source/smbd/oplock_irix.c
@@ -22,7 +22,6 @@
#include "includes.h"
#if HAVE_KERNEL_OPLOCKS_IRIX
-extern int DEBUGLEVEL;
static int oplock_pipe_write = -1;
static int oplock_pipe_read = -1;
diff --git a/source/smbd/oplock_linux.c b/source/smbd/oplock_linux.c
index c88441c8c60..8c4259ac535 100644
--- a/source/smbd/oplock_linux.c
+++ b/source/smbd/oplock_linux.c
@@ -23,8 +23,6 @@
#if HAVE_KERNEL_OPLOCKS_LINUX
-extern int DEBUGLEVEL;
-
static VOLATILE sig_atomic_t signals_received;
static VOLATILE sig_atomic_t signals_processed;
static VOLATILE sig_atomic_t fd_pending; /* the fd of the current pending signal */
diff --git a/source/smbd/password.c b/source/smbd/password.c
index 6f5c7508a4c..b074552567d 100644
--- a/source/smbd/password.c
+++ b/source/smbd/password.c
@@ -21,7 +21,6 @@
#include "includes.h"
-extern int DEBUGLEVEL;
extern struct in_addr ipzero;
/* users from session setup */
diff --git a/source/smbd/pipes.c b/source/smbd/pipes.c
index 162ad1603d8..9a911ed0145 100644
--- a/source/smbd/pipes.c
+++ b/source/smbd/pipes.c
@@ -31,8 +31,6 @@
#define PIPE "\\PIPE\\"
#define PIPELEN strlen(PIPE)
-extern int DEBUGLEVEL;
-
extern struct pipe_id_info pipe_names[];
/****************************************************************************
diff --git a/source/smbd/process.c b/source/smbd/process.c
index acda7128ae0..4b0da0b4663 100644
--- a/source/smbd/process.c
+++ b/source/smbd/process.c
@@ -21,8 +21,6 @@
#include "includes.h"
-extern int DEBUGLEVEL;
-
struct timeval smb_last_time;
static char *InBuffer = NULL;
diff --git a/source/smbd/quotas.c b/source/smbd/quotas.c
index cf21fd70439..76d1124aea9 100644
--- a/source/smbd/quotas.c
+++ b/source/smbd/quotas.c
@@ -28,8 +28,6 @@
#include "includes.h"
-extern int DEBUGLEVEL;
-
#if defined(VXFS_QUOTA)
/*
diff --git a/source/smbd/reply.c b/source/smbd/reply.c
index dbd149afcf5..334a48e3385 100644
--- a/source/smbd/reply.c
+++ b/source/smbd/reply.c
@@ -29,7 +29,6 @@
/* look in server.c for some explanation of these variables */
extern int Protocol;
-extern int DEBUGLEVEL;
extern int max_send;
extern int max_recv;
extern char magic_char;
diff --git a/source/smbd/sec_ctx.c b/source/smbd/sec_ctx.c
index 830e759d093..c053a611c2c 100644
--- a/source/smbd/sec_ctx.c
+++ b/source/smbd/sec_ctx.c
@@ -21,7 +21,6 @@
#include "includes.h"
-extern int DEBUGLEVEL;
extern struct current_user current_user;
struct sec_ctx {
diff --git a/source/smbd/server.c b/source/smbd/server.c
index 1e89bbab7ea..a851a8656da 100644
--- a/source/smbd/server.c
+++ b/source/smbd/server.c
@@ -34,8 +34,6 @@ int last_message = -1;
/* a useful macro to debug the last message processed */
#define LAST_MESSAGE() smb_fn_name(last_message)
-extern int DEBUGLEVEL;
-
extern pstring user_socket_options;
#ifdef WITH_DFS
diff --git a/source/smbd/service.c b/source/smbd/service.c
index 7119aa258ee..69283d3bf50 100644
--- a/source/smbd/service.c
+++ b/source/smbd/service.c
@@ -21,8 +21,6 @@
#include "includes.h"
-extern int DEBUGLEVEL;
-
extern struct timeval smb_last_time;
extern int case_default;
extern BOOL case_preserve;
@@ -740,5 +738,3 @@ void close_cnum(connection_struct *conn, uint16 vuid)
}
conn_free(conn);
}
-
-
diff --git a/source/smbd/trans2.c b/source/smbd/trans2.c
index 139b97d0881..0941d9f6925 100644
--- a/source/smbd/trans2.c
+++ b/source/smbd/trans2.c
@@ -23,7 +23,6 @@
#include "includes.h"
-extern int DEBUGLEVEL;
extern int Protocol;
extern BOOL case_sensitive;
extern int smb_read_error;
diff --git a/source/smbd/uid.c b/source/smbd/uid.c
index 9fe634a7e9c..6afaf1493e3 100644
--- a/source/smbd/uid.c
+++ b/source/smbd/uid.c
@@ -21,8 +21,6 @@
#include "includes.h"
-extern int DEBUGLEVEL;
-
/* what user is current? */
extern struct current_user current_user;
diff --git a/source/smbd/vfs.c b/source/smbd/vfs.c
index 60762a01555..05645f7b19d 100644
--- a/source/smbd/vfs.c
+++ b/source/smbd/vfs.c
@@ -21,8 +21,6 @@
#include "includes.h"
-extern int DEBUGLEVEL;
-
/* Some structures to help us initialise the vfs operations table */
struct vfs_syminfo {