1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-29 02:50:28 +03:00

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

(This used to be commit 2d0922b0eabfdc0aaf1d0797482fef47ed7fde8e)
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"
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;
}

View File

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

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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);
}

View File

@ -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;
}

View File

@ -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];

View File

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

View File

@ -24,8 +24,6 @@
#include "includes.h"
extern int DEBUGLEVEL;
/* these are kept here to keep the string_combinations function simple */
static fstring this_user;
#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;
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -22,7 +22,6 @@
#include "includes.h"
extern int DEBUGLEVEL;
extern DOM_SID global_sam_sid;
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);
extern XFILE *dbf;
extern int DEBUGLEVEL;
/* If we have these macros, we can add additional info to the header. */
#ifdef HAVE_FILE_MACRO

View File

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

View File

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

View File

@ -22,8 +22,6 @@
*/
#include "includes.h"
extern int DEBUGLEVEL;
static pstring cvtbuf;
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 int DEBUGLEVEL;
#define CNV_LANG(s) dos2unix_format(s,False)
#define CNV_INPUT(s) unix2dos_format(s,True)

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -22,8 +22,6 @@
#include "includes.h"
extern int DEBUGLEVEL;
fstring local_machine="";
fstring remote_arch="UNKNOWN";
userdom_struct current_user_info;
@ -32,7 +30,6 @@ BOOL sam_logon_in_ssb = False;
fstring remote_proto="UNKNOWN";
fstring remote_machine="";
/*******************************************************************
Given a pointer to a %$(NAME) expand it as an environment variable.
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);
}

View File

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

View File

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

View File

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

View File

@ -20,7 +20,6 @@
*/
#include "includes.h"
extern int DEBUGLEVEL;
/* internal functions */
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;
#endif /* WITH_SSL */
extern int DEBUGLEVEL;
int Protocol = PROTOCOL_COREPLUS;
/* a default finfo structure to ensure all fields are sensible */

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -21,8 +21,6 @@
#include "includes.h"
extern int DEBUGLEVEL;
#ifndef MAXUNI
#define MAXUNI 1024
#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);
return dest;
}

View File

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

View File

@ -23,8 +23,6 @@
#include "includes.h"
extern int DEBUGLEVEL;
/*****************************************************
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);
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -24,8 +24,6 @@
#include "includes.h"
extern int DEBUGLEVEL;
/* these are kept here to keep the string_combinations function simple */
static fstring this_user;
#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;
}

View File

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

View File

@ -22,8 +22,6 @@
#include "includes.h"
extern int DEBUGLEVEL;
/*
* NOTE. All these functions are abstracted into a structure
* 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);
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

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