1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-04 08:22:08 +03:00

Removed 'extern int DEBUGLEVEL' as it is now in the smb.h header.

(This used to be commit 2d0922b0ea)
This commit is contained in:
Tim Potter
2001-10-02 04:29:50 +00:00
parent 260002f0e7
commit dc1fc3ee8e
222 changed files with 3 additions and 506 deletions

View File

@ -23,8 +23,6 @@
#include "includes.h" #include "includes.h"
extern int DEBUGLEVEL;
/**************************************************************************** /****************************************************************************
Check user is in correct domain if required Check user is in correct domain if required
****************************************************************************/ ****************************************************************************/
@ -257,4 +255,3 @@ BOOL password_ok(char *user, char *password, int pwlen)
return False; return False;
} }

View File

@ -22,8 +22,6 @@
#include "includes.h" #include "includes.h"
extern int DEBUGLEVEL;
BOOL global_machine_password_needs_changing = False; BOOL global_machine_password_needs_changing = False;
/**************************************************************************** /****************************************************************************

View File

@ -21,9 +21,6 @@
#include "includes.h" #include "includes.h"
extern int DEBUGLEVEL;
/**************************************************************************** /****************************************************************************
Read the a hosts.equiv or .rhosts file and check if it Read the a hosts.equiv or .rhosts file and check if it
allows this user from this machine. allows this user from this machine.
@ -181,6 +178,3 @@ NTSTATUS check_rhosts_security(const auth_usersupplied_info *user_info,
return nt_status; return nt_status;
} }

View File

@ -23,8 +23,6 @@
#include "includes.h" #include "includes.h"
extern int DEBUGLEVEL;
/**************************************************************************** /****************************************************************************
core of smb password checking routine. 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); pdb_free_sam(&sampass);
return nt_status; return nt_status;
} }

View File

@ -22,8 +22,6 @@
#include "includes.h" #include "includes.h"
extern int DEBUGLEVEL;
extern pstring global_myname; extern pstring global_myname;
/**************************************************************************** /****************************************************************************
@ -228,5 +226,3 @@ use this machine as the password server.\n"));
return(nt_status); return(nt_status);
} }

View File

@ -21,8 +21,6 @@
#include "includes.h" #include "includes.h"
extern int DEBUGLEVEL;
/**************************************************************************** /****************************************************************************
update the encrypted smbpasswd file from the plaintext username and password 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; return nt_status;
} }

View File

@ -19,9 +19,8 @@
along with this program; if not, write to the Free Software along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 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. */ /* Data to do lanman1/2 password challenge. */
static unsigned char saved_challenge[8]; static unsigned char saved_challenge[8];

View File

@ -30,8 +30,6 @@
#include "includes.h" #include "includes.h"
extern int DEBUGLEVEL;
#ifdef WITH_PAM #ifdef WITH_PAM
/******************************************************************* /*******************************************************************

View File

@ -24,8 +24,6 @@
#include "includes.h" #include "includes.h"
extern int DEBUGLEVEL;
/* these are kept here to keep the string_combinations function simple */ /* these are kept here to keep the string_combinations function simple */
static fstring this_user; static fstring this_user;
#if !(defined(WITH_PAM) || defined(KRB4_AUTH) || defined(KRB5_AUTH)) #if !(defined(WITH_PAM) || defined(KRB4_AUTH) || defined(KRB5_AUTH))
@ -896,6 +894,3 @@ NTSTATUS pass_check(struct passwd *pass, char *user, char *password,
return NT_STATUS_WRONG_PASSWORD; return NT_STATUS_WRONG_PASSWORD;
} }

View File

@ -61,7 +61,6 @@ time_t newer_than = 0;
int archive_level = 0; int archive_level = 0;
extern pstring debugf; extern pstring debugf;
extern int DEBUGLEVEL;
BOOL translation = False; BOOL translation = False;

View File

@ -69,7 +69,6 @@ typedef struct
stack dir_stack = {NULL, 0}; /* Want an empty stack */ stack dir_stack = {NULL, 0}; /* Want an empty stack */
#define SEPARATORS " \t\n\r" #define SEPARATORS " \t\n\r"
extern int DEBUGLEVEL;
extern struct cli_state *cli; extern struct cli_state *cli;
/* These defines are for the do_setrattr routine, to indicate /* These defines are for the do_setrattr routine, to indicate

View File

@ -28,7 +28,6 @@
#include <linux/smb_fs.h> #include <linux/smb_fs.h>
extern struct in_addr ipzero; extern struct in_addr ipzero;
extern int DEBUGLEVEL;
extern BOOL in_client; extern BOOL in_client;
extern pstring user_socket_options; extern pstring user_socket_options;

View File

@ -22,8 +22,6 @@
#include "includes.h" #include "includes.h"
extern int DEBUGLEVEL;
extern fstring global_sam_name; extern fstring global_sam_name;
/* /*

View File

@ -22,7 +22,6 @@
#ifdef USE_SMBPASS_DB #ifdef USE_SMBPASS_DB
static int al_file_lock_depth = 0; static int al_file_lock_depth = 0;
extern int DEBUGLEVEL;
static char s_readbuf[1024]; static char s_readbuf[1024];

View File

@ -22,8 +22,6 @@
#include "includes.h" #include "includes.h"
extern int DEBUGLEVEL;
/* /*
* NOTE. All these functions are abstracted into a structure * NOTE. All these functions are abstracted into a structure
* that points to the correct function for the selected database. JRA. * that points to the correct function for the selected database. JRA.

View File

@ -22,7 +22,6 @@
#ifdef USE_SMBPASS_DB #ifdef USE_SMBPASS_DB
static int gp_file_lock_depth = 0; static int gp_file_lock_depth = 0;
extern int DEBUGLEVEL;
static char s_readbuf[1024]; static char s_readbuf[1024];

View File

@ -22,7 +22,6 @@
#include "includes.h" #include "includes.h"
extern int DEBUGLEVEL;
extern DOM_SID global_sam_sid; extern DOM_SID global_sam_sid;
static TDB_CONTEXT *tdb; /* used for driver files */ static TDB_CONTEXT *tdb; /* used for driver files */

View File

@ -41,7 +41,6 @@ int Debug1( char *, ... ) PRINTF_ATTRIBUTE(1,2);
BOOL dbgtext( char *, ... ) PRINTF_ATTRIBUTE(1,2); BOOL dbgtext( char *, ... ) PRINTF_ATTRIBUTE(1,2);
extern XFILE *dbf; extern XFILE *dbf;
extern int DEBUGLEVEL;
/* If we have these macros, we can add additional info to the header. */ /* If we have these macros, we can add additional info to the header. */
#ifdef HAVE_FILE_MACRO #ifdef HAVE_FILE_MACRO

View File

@ -10,8 +10,6 @@
#include "includes.h" #include "includes.h"
extern int DEBUGLEVEL;
#define FAIL (-1) #define FAIL (-1)
/* masked_match - match address against netnumber/netmask */ /* masked_match - match address against netnumber/netmask */

View File

@ -21,12 +21,9 @@
#include "includes.h" #include "includes.h"
extern int DEBUGLEVEL;
/* these functions provide a simple way to allocate integers from a /* these functions provide a simple way to allocate integers from a
pool without repitition */ pool without repitition */
/**************************************************************************** /****************************************************************************
allocate a bitmap of the specified size allocate a bitmap of the specified size
****************************************************************************/ ****************************************************************************/

View File

@ -22,8 +22,6 @@
*/ */
#include "includes.h" #include "includes.h"
extern int DEBUGLEVEL;
static pstring cvtbuf; static pstring cvtbuf;
static smb_iconv_t conv_handles[NUM_CHARSETS][NUM_CHARSETS]; static smb_iconv_t conv_handles[NUM_CHARSETS][NUM_CHARSETS];

View File

@ -41,9 +41,6 @@ extern pstring user_socket_options;
extern struct user_creds *usr_creds; extern struct user_creds *usr_creds;
extern int DEBUGLEVEL;
#define CNV_LANG(s) dos2unix_format(s,False) #define CNV_LANG(s) dos2unix_format(s,False)
#define CNV_INPUT(s) unix2dos_format(s,True) #define CNV_INPUT(s) unix2dos_format(s,True)

View File

@ -7,7 +7,6 @@
*/ */
#include "includes.h" #include "includes.h"
extern int DEBUGLEVEL;
static unsigned long CRCTable[256] = static unsigned long CRCTable[256] =
{ {

View File

@ -20,12 +20,9 @@
*/ */
#include "includes.h" #include "includes.h"
extern int DEBUGLEVEL;
static void (*cont_fn)(void *); static void (*cont_fn)(void *);
/******************************************************************* /*******************************************************************
report a fault report a fault
********************************************************************/ ********************************************************************/

View File

@ -23,9 +23,6 @@
#include "includes.h" #include "includes.h"
extern int DEBUGLEVEL;
static unsigned char hash[258]; static unsigned char hash[258];
static uint32 counter; static uint32 counter;
unsigned char *reseed_data; unsigned char *reseed_data;

View File

@ -28,8 +28,6 @@
#include "includes.h" #include "includes.h"
extern int DEBUGLEVEL;
static BOOL enlarge_hash_table(hash_table *table); static BOOL enlarge_hash_table(hash_table *table);
static int primes[] = static int primes[] =
{17, 37, 67, 131, 257, 521, 1031, 2053, 4099, 8209, 16411}; {17, 37, 67, 131, 257, 521, 1031, 2053, 4099, 8209, 16411};

View File

@ -26,8 +26,6 @@
static struct iface_struct *probed_ifaces; static struct iface_struct *probed_ifaces;
static int total_probed; static int total_probed;
extern int DEBUGLEVEL;
struct in_addr ipzero; struct in_addr ipzero;
struct in_addr allones_ip; struct in_addr allones_ip;
struct in_addr loopback_ip; struct in_addr loopback_ip;

View File

@ -28,8 +28,6 @@
#ifdef WITH_NETATALK #ifdef WITH_NETATALK
extern int DEBUGLEVEL;
/***************** /*****************
ntalk_resourcepath: creates the path to the netatalk resource fork for ntalk_resourcepath: creates the path to the netatalk resource fork for
a given file a given file
@ -155,5 +153,4 @@ int ntalk_chmod(const char *fname, mode_t perms)
return chmod(fname, perms); return chmod(fname, perms);
} }
#endif /* WITH_NETATALK */ #endif /* WITH_NETATALK */

View File

@ -23,9 +23,6 @@
#include "includes.h" #include "includes.h"
extern int DEBUGLEVEL;
#ifndef O_NONBLOCK #ifndef O_NONBLOCK
#define O_NONBLOCK #define O_NONBLOCK
#endif #endif

View File

@ -21,12 +21,9 @@
#include "includes.h" #include "includes.h"
extern int DEBUGLEVEL;
void replace_dummy(void); void replace_dummy(void);
void replace_dummy(void) {} void replace_dummy(void) {}
#ifndef HAVE_FTRUNCATE #ifndef HAVE_FTRUNCATE
/******************************************************************* /*******************************************************************
ftruncate for operating systems that don't have it ftruncate for operating systems that don't have it

View File

@ -24,8 +24,6 @@
/* need to move this from here!! need some sleep ... */ /* need to move this from here!! need some sleep ... */
struct current_user current_user; struct current_user current_user;
extern int DEBUGLEVEL;
/**************************************************************************** /****************************************************************************
This is a utility function of smbrun(). This is a utility function of smbrun().
****************************************************************************/ ****************************************************************************/

View File

@ -22,8 +22,6 @@
#include "includes.h" #include "includes.h"
extern int DEBUGLEVEL;
fstring local_machine=""; fstring local_machine="";
fstring remote_arch="UNKNOWN"; fstring remote_arch="UNKNOWN";
userdom_struct current_user_info; userdom_struct current_user_info;
@ -32,7 +30,6 @@ BOOL sam_logon_in_ssb = False;
fstring remote_proto="UNKNOWN"; fstring remote_proto="UNKNOWN";
fstring remote_machine=""; fstring remote_machine="";
/******************************************************************* /*******************************************************************
Given a pointer to a %$(NAME) expand it as an environment variable. Given a pointer to a %$(NAME) expand it as an environment variable.
Return the number of characters by which the pointer should be advanced. Return the number of characters by which the pointer should be advanced.
@ -318,4 +315,3 @@ void standard_sub_vsnum(char *str, user_struct *vuser, int snum)
{ {
standard_sub_advanced(snum, vuser->user.unix_name, "", -1, str); standard_sub_advanced(snum, vuser->user.unix_name, "", -1, str);
} }

View File

@ -21,8 +21,6 @@
#include "includes.h" #include "includes.h"
extern int DEBUGLEVEL;
/* /*
This file wraps all differing system ACL interfaces into a consistent This file wraps all differing system ACL interfaces into a consistent
one based on the POSIX interface. It also returns the correct errors one based on the POSIX interface. It also returns the correct errors

View File

@ -21,8 +21,6 @@
#include "includes.h" #include "includes.h"
extern int DEBUGLEVEL;
/* /*
The idea is that this file will eventually have wrappers around all The idea is that this file will eventually have wrappers around all
important system calls in samba. The aims are: important system calls in samba. The aims are:

View File

@ -30,8 +30,6 @@
int serverzone=0; int serverzone=0;
int extra_time_offset = 0; int extra_time_offset = 0;
extern int DEBUGLEVEL;
#ifndef CHAR_BIT #ifndef CHAR_BIT
#define CHAR_BIT 8 #define CHAR_BIT 8
#endif #endif

View File

@ -20,7 +20,6 @@
*/ */
#include "includes.h" #include "includes.h"
extern int DEBUGLEVEL;
/* internal functions */ /* internal functions */
static struct passwd *uname_string_combinations(char *s, struct passwd * (*fn) (char *), int N); static struct passwd *uname_string_combinations(char *s, struct passwd * (*fn) (char *), int N);

View File

@ -58,8 +58,6 @@ extern SSL *ssl;
extern int sslFd; extern int sslFd;
#endif /* WITH_SSL */ #endif /* WITH_SSL */
extern int DEBUGLEVEL;
int Protocol = PROTOCOL_COREPLUS; int Protocol = PROTOCOL_COREPLUS;
/* a default finfo structure to ensure all fields are sensible */ /* a default finfo structure to ensure all fields are sensible */

View File

@ -19,8 +19,6 @@
#include "includes.h" #include "includes.h"
extern int DEBUGLEVEL;
static int gotalarm; static int gotalarm;
/*************************************************************** /***************************************************************

View File

@ -24,8 +24,6 @@
#include "nterr.h" #include "nterr.h"
#include "sids.h" #include "sids.h"
extern int DEBUGLEVEL;
/********************************************************************************** /**********************************************************************************
Check if this ACE has a SID in common with the token. Check if this ACE has a SID in common with the token.
**********************************************************************************/ **********************************************************************************/

View File

@ -21,7 +21,6 @@
#ifndef AUTOCONF_TEST #ifndef AUTOCONF_TEST
#include "includes.h" #include "includes.h"
extern int DEBUGLEVEL;
#else #else
/* we are running this code in autoconf test mode to see which type of setuid /* we are running this code in autoconf test mode to see which type of setuid
function works */ function works */

View File

@ -23,8 +23,6 @@
#include "includes.h" #include "includes.h"
extern int DEBUGLEVEL;
DOM_SID global_sam_sid; DOM_SID global_sam_sid;
extern pstring global_myname; extern pstring global_myname;
extern fstring global_myworkgroup; extern fstring global_myworkgroup;

View File

@ -28,8 +28,6 @@ extern SSL *ssl;
extern int sslFd; extern int sslFd;
#endif /* WITH_SSL */ #endif /* WITH_SSL */
extern int DEBUGLEVEL;
/* the last IP received from */ /* the last IP received from */
struct in_addr lastip; struct in_addr lastip;
@ -1243,4 +1241,3 @@ int sock_exec(const char *prog)
close(fd[1]); close(fd[1]);
return fd[0]; return fd[0];
} }

View File

@ -21,8 +21,6 @@
#include "includes.h" #include "includes.h"
extern int DEBUGLEVEL;
/**************************************************************************** /****************************************************************************
Get the next token from a string, return False if none found Get the next token from a string, return False if none found
handles double-quotes. handles double-quotes.
@ -855,4 +853,3 @@ void strupper_m(char *s)
* as source string even in multibyte encoding. (VIV) */ * as source string even in multibyte encoding. (VIV) */
unix_strupper(s,strlen(s)+1,s,strlen(s)+1); unix_strupper(s,strlen(s)+1,s,strlen(s)+1);
} }

View File

@ -21,8 +21,6 @@
#include "includes.h" #include "includes.h"
extern int DEBUGLEVEL;
#ifndef MAXUNI #ifndef MAXUNI
#define MAXUNI 1024 #define MAXUNI 1024
#endif #endif
@ -453,4 +451,3 @@ smb_ucs2_t *strncat_wa(smb_ucs2_t *dest, const char *src, const size_t max)
SAFE_FREE(ucs2_src); SAFE_FREE(ucs2_src);
return dest; return dest;
} }

View File

@ -23,9 +23,6 @@
#include "includes.h" #include "includes.h"
extern int DEBUGLEVEL;
/* /*
* Change the port number used to call on * Change the port number used to call on
*/ */
@ -248,4 +245,3 @@ uint16 cli_setpid(struct cli_state *cli, uint16 pid)
cli->pid = pid; cli->pid = pid;
return ret; return ret;
} }

View File

@ -23,8 +23,6 @@
#include "includes.h" #include "includes.h"
extern int DEBUGLEVEL;
/***************************************************** /*****************************************************
RAP error codes - a small start but will be extended. RAP error codes - a small start but will be extended.
*******************************************************/ *******************************************************/
@ -267,4 +265,3 @@ BOOL cli_is_dos_error(struct cli_state *cli)
return cli_is_error(cli) && !(flgs2 & FLAGS2_32_BIT_ERROR_CODES); return cli_is_error(cli) && !(flgs2 & FLAGS2_32_BIT_ERROR_CODES);
} }

View File

@ -22,8 +22,6 @@
#define NO_SYSLOG #define NO_SYSLOG
#include "includes.h" #include "includes.h"
extern int DEBUGLEVEL;
/**************************************************************************** /****************************************************************************
send an ack for an oplock break request send an ack for an oplock break request
@ -69,4 +67,3 @@ void cli_oplock_handler(struct cli_state *cli,
{ {
cli->oplock_handler = handler; cli->oplock_handler = handler;
} }

View File

@ -21,10 +21,6 @@
#include "includes.h" #include "includes.h"
extern int DEBUGLEVEL;
/**************************************************************************** /****************************************************************************
represent a credential as a string represent a credential as a string
****************************************************************************/ ****************************************************************************/

View File

@ -22,7 +22,6 @@
#include "includes.h" #include "includes.h"
extern int DEBUGLEVEL;
extern struct in_addr ipzero; extern struct in_addr ipzero;
extern pstring global_myname; extern pstring global_myname;

View File

@ -22,8 +22,6 @@
#include "includes.h" #include "includes.h"
extern int DEBUGLEVEL;
/* nmbd.c sets this to True. */ /* nmbd.c sets this to True. */
BOOL global_in_nmbd = False; BOOL global_in_nmbd = False;

View File

@ -22,8 +22,6 @@
#include "includes.h" #include "includes.h"
extern int DEBUGLEVEL;
int num_good_sends = 0; int num_good_sends = 0;
int num_good_receives = 0; int num_good_receives = 0;
@ -1269,5 +1267,3 @@ int name_len(char *s1)
return(len); return(len);
} /* name_len */ } /* name_len */

View File

@ -21,9 +21,6 @@
#include "includes.h" #include "includes.h"
extern int DEBUGLEVEL;
/**************************************************************************** /****************************************************************************
initialises a password structure initialises a password structure
****************************************************************************/ ****************************************************************************/

View File

@ -23,9 +23,6 @@
*/ */
#include "includes.h" #include "includes.h"
extern int DEBUGLEVEL;
#include "byteorder.h" #include "byteorder.h"
/* /*

View File

@ -22,8 +22,6 @@
#include "includes.h" #include "includes.h"
extern int DEBUGLEVEL;
/* error code stuff - put together by Merik Karman /* error code stuff - put together by Merik Karman
merik@blackadder.dsh.oz.au */ merik@blackadder.dsh.oz.au */
@ -200,4 +198,3 @@ WERROR map_werror_from_unix(int error)
NTSTATUS status = map_nt_error_from_unix(error); NTSTATUS status = map_nt_error_from_unix(error);
return ntstatus_to_werror(status); return ntstatus_to_werror(status);
} }

View File

@ -22,8 +22,6 @@
#include "includes.h" #include "includes.h"
extern int DEBUGLEVEL;
static TDB_CONTEXT *tdbd = NULL; static TDB_CONTEXT *tdbd = NULL;
/* the key type used in the unexpeceted packet database */ /* the key type used in the unexpeceted packet database */

View File

@ -28,8 +28,6 @@
#include "includes.h" #include "includes.h"
extern int DEBUGLEVEL;
#define ZERO_ZERO 0 #define ZERO_ZERO 0
/* This contains elements that differentiate locks. The smbpid is a /* This contains elements that differentiate locks. The smbpid is a

View File

@ -36,7 +36,6 @@
*/ */
#include "includes.h" #include "includes.h"
extern int DEBUGLEVEL;
uint16 global_smbpid; uint16 global_smbpid;
/* the locking database handle */ /* the locking database handle */

View File

@ -24,7 +24,6 @@
*/ */
#include "includes.h" #include "includes.h"
extern int DEBUGLEVEL;
/* /*
* The POSIX locking database handle. * The POSIX locking database handle.

View File

@ -21,7 +21,6 @@
#include "includes.h" #include "includes.h"
extern int DEBUGLEVEL;
extern pstring global_myname; extern pstring global_myname;
/********************************************************************** /**********************************************************************
@ -737,5 +736,3 @@ int enum_msdfs_links(struct junction_map* jn)
} }
return jn_count; return jn_count;
} }

View File

@ -20,8 +20,6 @@
#include "includes.h" #include "includes.h"
extern int DEBUGLEVEL;
/*************************************************************************** /***************************************************************************
Add a DNS result to the name cache. Add a DNS result to the name cache.
****************************************************************************/ ****************************************************************************/

View File

@ -27,8 +27,6 @@
#include "includes.h" #include "includes.h"
extern int DEBUGLEVEL;
extern pstring debugf; extern pstring debugf;
pstring servicesf = CONFIGFILE; pstring servicesf = CONFIGFILE;
@ -878,4 +876,3 @@ static void usage(char *pname)
x_fclose(dbf); x_fclose(dbf);
return(0); return(0);
} /* main */ } /* main */

View File

@ -24,8 +24,6 @@
#include "includes.h" #include "includes.h"
extern int DEBUGLEVEL;
extern pstring global_myname; extern pstring global_myname;
extern fstring global_myworkgroup; extern fstring global_myworkgroup;
extern char **my_netbios_names; extern char **my_netbios_names;

View File

@ -24,7 +24,6 @@
#include "includes.h" #include "includes.h"
extern int DEBUGLEVEL;
extern pstring global_myname; extern pstring global_myname;
extern uint16 samba_nb_type; /* Samba's NetBIOS name type. */ extern uint16 samba_nb_type; /* Samba's NetBIOS name type. */

View File

@ -30,8 +30,6 @@
#include "includes.h" #include "includes.h"
extern int DEBUGLEVEL;
/* -------------------------------------------------------------------------- ** /* -------------------------------------------------------------------------- **
* Variables... * Variables...
* *

View File

@ -25,7 +25,6 @@
#include "includes.h" #include "includes.h"
#include "smb.h" #include "smb.h"
extern int DEBUGLEVEL;
extern struct in_addr ipzero; extern struct in_addr ipzero;
extern pstring global_myname; extern pstring global_myname;
extern fstring global_myworkgroup; extern fstring global_myworkgroup;

View File

@ -24,8 +24,6 @@
#include "includes.h" #include "includes.h"
extern int DEBUGLEVEL;
extern pstring global_myname; extern pstring global_myname;
extern fstring global_myworkgroup; extern fstring global_myworkgroup;

View File

@ -24,8 +24,6 @@
#include "includes.h" #include "includes.h"
extern int DEBUGLEVEL;
extern pstring global_myname; extern pstring global_myname;
extern fstring global_myworkgroup; extern fstring global_myworkgroup;
extern BOOL found_lm_clients; extern BOOL found_lm_clients;

View File

@ -28,7 +28,6 @@
#include "includes.h" #include "includes.h"
extern int DEBUGLEVEL;
extern fstring global_myworkgroup; extern fstring global_myworkgroup;
/**************************************************************************** /****************************************************************************

View File

@ -26,8 +26,6 @@
#include "includes.h" #include "includes.h"
extern int DEBUGLEVEL;
/**************************************************************************** /****************************************************************************
Load a lmhosts file. Load a lmhosts file.
****************************************************************************/ ****************************************************************************/

View File

@ -24,8 +24,6 @@
#include "includes.h" #include "includes.h"
extern int DEBUGLEVEL;
extern pstring global_myname; extern pstring global_myname;
extern fstring global_myworkgroup; extern fstring global_myworkgroup;
extern char **my_netbios_names; extern char **my_netbios_names;

View File

@ -24,8 +24,6 @@
#include "includes.h" #include "includes.h"
extern int DEBUGLEVEL;
extern char **my_netbios_names; extern char **my_netbios_names;
extern fstring global_myworkgroup; extern fstring global_myworkgroup;

View File

@ -24,8 +24,6 @@
#include "includes.h" #include "includes.h"
extern int DEBUGLEVEL;
extern char **my_netbios_names; extern char **my_netbios_names;
uint16 samba_nb_type = 0; /* samba's NetBIOS name type */ uint16 samba_nb_type = 0; /* samba's NetBIOS name type */

View File

@ -24,7 +24,6 @@
#include "includes.h" #include "includes.h"
extern int DEBUGLEVEL;
extern struct in_addr ipzero; extern struct in_addr ipzero;
/**************************************************************************** /****************************************************************************

View File

@ -24,8 +24,6 @@
#include "includes.h" #include "includes.h"
extern int DEBUGLEVEL;
extern fstring global_myworkgroup; extern fstring global_myworkgroup;
/**************************************************************************** /****************************************************************************

View File

@ -24,8 +24,6 @@
#include "includes.h" #include "includes.h"
extern int DEBUGLEVEL;
/**************************************************************************** /****************************************************************************
Deal with a response packet when releasing one of our names. Deal with a response packet when releasing one of our names.
****************************************************************************/ ****************************************************************************/

View File

@ -24,8 +24,6 @@
#include "includes.h" #include "includes.h"
extern int DEBUGLEVEL;
/**************************************************************************** /****************************************************************************
Deal with a successful node status response. Deal with a successful node status response.
****************************************************************************/ ****************************************************************************/

View File

@ -28,8 +28,6 @@ extern int ClientNMB;
extern int ClientDGRAM; extern int ClientDGRAM;
extern int global_nmb_port; extern int global_nmb_port;
extern int DEBUGLEVEL;
extern int num_response_packets; extern int num_response_packets;
extern struct in_addr loopback_ip; extern struct in_addr loopback_ip;

View File

@ -26,8 +26,6 @@
#include "includes.h" #include "includes.h"
extern int DEBUGLEVEL;
extern pstring global_myname; extern pstring global_myname;
extern fstring global_myworkgroup; extern fstring global_myworkgroup;

View File

@ -26,8 +26,6 @@
extern int ClientNMB; extern int ClientNMB;
extern int DEBUGLEVEL;
extern struct in_addr ipzero; extern struct in_addr ipzero;
int num_response_packets = 0; int num_response_packets = 0;

View File

@ -27,7 +27,6 @@
#include "includes.h" #include "includes.h"
extern int DEBUGLEVEL;
extern pstring global_myname; extern pstring global_myname;
extern fstring global_myworkgroup; extern fstring global_myworkgroup;
extern char **my_netbios_names; extern char **my_netbios_names;

View File

@ -27,8 +27,6 @@
extern int ClientNMB; extern int ClientNMB;
extern int DEBUGLEVEL;
extern fstring global_myworkgroup; extern fstring global_myworkgroup;
extern char **my_netbios_names; extern char **my_netbios_names;

View File

@ -31,8 +31,6 @@ extern int ClientNMB;
extern int ClientDGRAM; extern int ClientDGRAM;
extern int global_nmb_port; extern int global_nmb_port;
extern int DEBUGLEVEL;
extern fstring myworkgroup; extern fstring myworkgroup;
extern char **my_netbios_names; extern char **my_netbios_names;
extern struct in_addr ipzero; extern struct in_addr ipzero;

View File

@ -31,8 +31,6 @@
#include "includes.h" #include "includes.h"
#include "smb.h" #include "smb.h"
extern int DEBUGLEVEL;
struct sync_record { struct sync_record {
struct sync_record *next, *prev; struct sync_record *next, *prev;
fstring workgroup; fstring workgroup;

View File

@ -23,8 +23,6 @@
#include "includes.h" #include "includes.h"
extern int DEBUGLEVEL;
/**************************************************************************** /****************************************************************************
Function called when the name lookup succeeded. Function called when the name lookup succeeded.
****************************************************************************/ ****************************************************************************/

View File

@ -26,10 +26,8 @@
#define WINS_LIST "wins.dat" #define WINS_LIST "wins.dat"
#define WINS_VERSION 1 #define WINS_VERSION 1
extern int DEBUGLEVEL;
extern struct in_addr ipzero; extern struct in_addr ipzero;
/**************************************************************************** /****************************************************************************
possibly call the WINS hook external program when a WINS change is made possibly call the WINS hook external program when a WINS change is made
*****************************************************************************/ *****************************************************************************/

View File

@ -27,8 +27,6 @@
extern int ClientNMB; extern int ClientNMB;
extern int DEBUGLEVEL;
extern pstring global_myname; extern pstring global_myname;
extern fstring global_myworkgroup; extern fstring global_myworkgroup;
extern char **my_netbios_names; extern char **my_netbios_names;

View File

@ -30,10 +30,6 @@
#include "winbindd_nss.h" #include "winbindd_nss.h"
/* Naughty global stuff */
extern int DEBUGLEVEL;
/* Client state structure */ /* Client state structure */
struct winbindd_cli_state { struct winbindd_cli_state {

View File

@ -25,8 +25,6 @@
#include "includes.h" #include "includes.h"
#include <nss.h> #include <nss.h>
extern int DEBUGLEVEL;
#ifndef INADDRSZ #ifndef INADDRSZ
#define INADDRSZ 4 #define INADDRSZ 4
#endif #endif

View File

@ -98,8 +98,6 @@
* bSize - The size of the global buffer <bufr>. * bSize - The size of the global buffer <bufr>.
*/ */
extern int DEBUGLEVEL;
static char *bufr = NULL; static char *bufr = NULL;
static int bSize = 0; static int bSize = 0;

View File

@ -30,8 +30,6 @@
#define ADD_USER 1 #define ADD_USER 1
#define MODIFY_USER 2 #define MODIFY_USER 2
extern int DEBUGLEVEL;
/******************************************************************* /*******************************************************************
open a connection to the ldap serve. open a connection to the ldap serve.
******************************************************************/ ******************************************************************/

View File

@ -30,8 +30,6 @@
#include "includes.h" #include "includes.h"
extern int DEBUGLEVEL;
#ifdef WITH_PAM #ifdef WITH_PAM
/******************************************************************* /*******************************************************************

View File

@ -24,8 +24,6 @@
#include "includes.h" #include "includes.h"
extern int DEBUGLEVEL;
/* these are kept here to keep the string_combinations function simple */ /* these are kept here to keep the string_combinations function simple */
static fstring this_user; static fstring this_user;
#if !(defined(WITH_PAM) || defined(KRB4_AUTH) || defined(KRB5_AUTH)) #if !(defined(WITH_PAM) || defined(KRB4_AUTH) || defined(KRB5_AUTH))
@ -896,6 +894,3 @@ NTSTATUS pass_check(struct passwd *pass, char *user, char *password,
return NT_STATUS_WRONG_PASSWORD; return NT_STATUS_WRONG_PASSWORD;
} }

View File

@ -23,8 +23,6 @@
#include "includes.h" #include "includes.h"
extern int DEBUGLEVEL;
/* /*
* This is set on startup - it defines the SID for this * This is set on startup - it defines the SID for this
* machine, and therefore the SAM database for which it is * machine, and therefore the SAM database for which it is

View File

@ -22,8 +22,6 @@
#include "includes.h" #include "includes.h"
extern int DEBUGLEVEL;
/* /*
* NOTE. All these functions are abstracted into a structure * NOTE. All these functions are abstracted into a structure
* that points to the correct function for the selected database. JRA. * that points to the correct function for the selected database. JRA.
@ -217,4 +215,3 @@ struct smb_passwd *getsmbgrpuid(uid_t smb_userid,
{ {
return pwgrp_ops->getsmbgrpuid(smb_userid, grps, num_grps, alss, num_alss); return pwgrp_ops->getsmbgrpuid(smb_userid, grps, num_grps, alss, num_alss);
} }

View File

@ -51,8 +51,6 @@
#define SAM_ACCOUNT struct sam_passwd #define SAM_ACCOUNT struct sam_passwd
#endif #endif
extern int DEBUGLEVEL;
struct ldap_enum_info struct ldap_enum_info
{ {
LDAP *ldap_struct; LDAP *ldap_struct;

View File

@ -44,12 +44,10 @@ struct smb_passwd
}; };
extern int DEBUGLEVEL;
extern pstring samlogon_user; extern pstring samlogon_user;
extern BOOL sam_logon_in_ssb; extern BOOL sam_logon_in_ssb;
extern struct passdb_ops pdb_ops; extern struct passdb_ops pdb_ops;
/* used for maintain locks on the smbpasswd file */ /* used for maintain locks on the smbpasswd file */
static int pw_file_lock_depth; static int pw_file_lock_depth;
static void *global_vp; static void *global_vp;

View File

@ -22,7 +22,6 @@
#ifdef USE_SMBPASS_DB #ifdef USE_SMBPASS_DB
static int grp_file_lock_depth = 0; static int grp_file_lock_depth = 0;
extern int DEBUGLEVEL;
/*************************************************************** /***************************************************************
Start to enumerate the smbpasswd list. Returns a void pointer Start to enumerate the smbpasswd list. Returns a void pointer

View File

@ -20,8 +20,6 @@
*/ */
#include "includes.h" #include "includes.h"
extern int DEBUGLEVEL;
static char *Months[13] = { "Jan", "Feb", "Mar", "Apr", "May", "Jun", static char *Months[13] = { "Jan", "Feb", "Mar", "Apr", "May", "Jun",
"Jul", "Aug", "Sep", "Oct", "Nov", "Dec", "Err"}; "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", "Err"};

View File

@ -22,7 +22,6 @@
#include "includes.h" #include "includes.h"
extern int DEBUGLEVEL;
extern pstring global_myname; extern pstring global_myname;
extern DOM_SID global_sid_World; extern DOM_SID global_sid_World;

View File

@ -65,8 +65,6 @@
#include "smb.h" #include "smb.h"
extern int DEBUGLEVEL;
#ifdef AIX #ifdef AIX
/* ****************************************** /* ******************************************
Extend for AIX system and qconfig file Extend for AIX system and qconfig file

Some files were not shown because too many files have changed in this diff Show More