summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/access.c2
-rw-r--r--source3/lib/bitmap.c3
-rw-r--r--source3/lib/charcnv.c2
-rw-r--r--source3/lib/cmd_interp.c3
-rw-r--r--source3/lib/crc32.c1
-rw-r--r--source3/lib/fault.c3
-rw-r--r--source3/lib/genrand.c3
-rw-r--r--source3/lib/hash.c2
-rw-r--r--source3/lib/interface.c2
-rw-r--r--source3/lib/netatalk.c3
-rw-r--r--source3/lib/pidfile.c3
-rw-r--r--source3/lib/replace.c3
-rw-r--r--source3/lib/smbrun.c2
-rw-r--r--source3/lib/substitute.c4
-rw-r--r--source3/lib/sysacls.c2
-rw-r--r--source3/lib/system.c2
-rw-r--r--source3/lib/time.c2
-rw-r--r--source3/lib/username.c1
-rw-r--r--source3/lib/util.c2
-rw-r--r--source3/lib/util_file.c2
-rw-r--r--source3/lib/util_seaccess.c2
-rw-r--r--source3/lib/util_sec.c1
-rw-r--r--source3/lib/util_sid.c2
-rw-r--r--source3/lib/util_sock.c3
-rw-r--r--source3/lib/util_str.c3
-rw-r--r--source3/lib/util_unistr.c3
26 files changed, 0 insertions, 61 deletions
diff --git a/source3/lib/access.c b/source3/lib/access.c
index b3d1838484..ff929d3549 100644
--- a/source3/lib/access.c
+++ b/source3/lib/access.c
@@ -10,8 +10,6 @@
#include "includes.h"
-extern int DEBUGLEVEL;
-
#define FAIL (-1)
/* masked_match - match address against netnumber/netmask */
diff --git a/source3/lib/bitmap.c b/source3/lib/bitmap.c
index 2ae9defb2d..b130467b22 100644
--- a/source3/lib/bitmap.c
+++ b/source3/lib/bitmap.c
@@ -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
****************************************************************************/
diff --git a/source3/lib/charcnv.c b/source3/lib/charcnv.c
index 55d56acf59..45d7d4d8d5 100644
--- a/source3/lib/charcnv.c
+++ b/source3/lib/charcnv.c
@@ -22,8 +22,6 @@
*/
#include "includes.h"
-extern int DEBUGLEVEL;
-
static pstring cvtbuf;
static smb_iconv_t conv_handles[NUM_CHARSETS][NUM_CHARSETS];
diff --git a/source3/lib/cmd_interp.c b/source3/lib/cmd_interp.c
index 5ebb8a94d2..54d023e9f7 100644
--- a/source3/lib/cmd_interp.c
+++ b/source3/lib/cmd_interp.c
@@ -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)
diff --git a/source3/lib/crc32.c b/source3/lib/crc32.c
index 16b337c764..e026fbf861 100644
--- a/source3/lib/crc32.c
+++ b/source3/lib/crc32.c
@@ -7,7 +7,6 @@
*/
#include "includes.h"
-extern int DEBUGLEVEL;
static unsigned long CRCTable[256] =
{
diff --git a/source3/lib/fault.c b/source3/lib/fault.c
index 29272f1928..885e35e023 100644
--- a/source3/lib/fault.c
+++ b/source3/lib/fault.c
@@ -20,12 +20,9 @@
*/
#include "includes.h"
-extern int DEBUGLEVEL;
-
static void (*cont_fn)(void *);
-
/*******************************************************************
report a fault
********************************************************************/
diff --git a/source3/lib/genrand.c b/source3/lib/genrand.c
index c4fb925a75..39e56db960 100644
--- a/source3/lib/genrand.c
+++ b/source3/lib/genrand.c
@@ -23,9 +23,6 @@
#include "includes.h"
-extern int DEBUGLEVEL;
-
-
static unsigned char hash[258];
static uint32 counter;
unsigned char *reseed_data;
diff --git a/source3/lib/hash.c b/source3/lib/hash.c
index 3abdc2ef11..68c334a8ca 100644
--- a/source3/lib/hash.c
+++ b/source3/lib/hash.c
@@ -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};
diff --git a/source3/lib/interface.c b/source3/lib/interface.c
index c68b405f7c..70ffcb0e1d 100644
--- a/source3/lib/interface.c
+++ b/source3/lib/interface.c
@@ -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;
diff --git a/source3/lib/netatalk.c b/source3/lib/netatalk.c
index ae0a57154e..654d3f78d4 100644
--- a/source3/lib/netatalk.c
+++ b/source3/lib/netatalk.c
@@ -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 */
diff --git a/source3/lib/pidfile.c b/source3/lib/pidfile.c
index a26aa12a3c..a9b2da0d7f 100644
--- a/source3/lib/pidfile.c
+++ b/source3/lib/pidfile.c
@@ -23,9 +23,6 @@
#include "includes.h"
-
-extern int DEBUGLEVEL;
-
#ifndef O_NONBLOCK
#define O_NONBLOCK
#endif
diff --git a/source3/lib/replace.c b/source3/lib/replace.c
index e1871a6f55..b972c745b0 100644
--- a/source3/lib/replace.c
+++ b/source3/lib/replace.c
@@ -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
diff --git a/source3/lib/smbrun.c b/source3/lib/smbrun.c
index 62378503e0..1ace6e3a99 100644
--- a/source3/lib/smbrun.c
+++ b/source3/lib/smbrun.c
@@ -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().
****************************************************************************/
diff --git a/source3/lib/substitute.c b/source3/lib/substitute.c
index 7f597d37f2..71bd8c777e 100644
--- a/source3/lib/substitute.c
+++ b/source3/lib/substitute.c
@@ -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);
}
-
diff --git a/source3/lib/sysacls.c b/source3/lib/sysacls.c
index 1c840d84ca..c618fbe0e8 100644
--- a/source3/lib/sysacls.c
+++ b/source3/lib/sysacls.c
@@ -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
diff --git a/source3/lib/system.c b/source3/lib/system.c
index 822aeb9004..4114ce456c 100644
--- a/source3/lib/system.c
+++ b/source3/lib/system.c
@@ -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:
diff --git a/source3/lib/time.c b/source3/lib/time.c
index f5cd96223c..59106386d4 100644
--- a/source3/lib/time.c
+++ b/source3/lib/time.c
@@ -30,8 +30,6 @@
int serverzone=0;
int extra_time_offset = 0;
-extern int DEBUGLEVEL;
-
#ifndef CHAR_BIT
#define CHAR_BIT 8
#endif
diff --git a/source3/lib/username.c b/source3/lib/username.c
index 2af477577e..24195b196b 100644
--- a/source3/lib/username.c
+++ b/source3/lib/username.c
@@ -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);
diff --git a/source3/lib/util.c b/source3/lib/util.c
index fe3e10e6b5..7fbdb44b4a 100644
--- a/source3/lib/util.c
+++ b/source3/lib/util.c
@@ -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 */
diff --git a/source3/lib/util_file.c b/source3/lib/util_file.c
index 1d7b85f75c..3d072bb170 100644
--- a/source3/lib/util_file.c
+++ b/source3/lib/util_file.c
@@ -19,8 +19,6 @@
#include "includes.h"
-extern int DEBUGLEVEL;
-
static int gotalarm;
/***************************************************************
diff --git a/source3/lib/util_seaccess.c b/source3/lib/util_seaccess.c
index ec1b56ae86..82fb1e8527 100644
--- a/source3/lib/util_seaccess.c
+++ b/source3/lib/util_seaccess.c
@@ -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.
**********************************************************************************/
diff --git a/source3/lib/util_sec.c b/source3/lib/util_sec.c
index 231f0b178d..a07e7d0e1a 100644
--- a/source3/lib/util_sec.c
+++ b/source3/lib/util_sec.c
@@ -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 */
diff --git a/source3/lib/util_sid.c b/source3/lib/util_sid.c
index 10813a4605..8903bb1465 100644
--- a/source3/lib/util_sid.c
+++ b/source3/lib/util_sid.c
@@ -23,8 +23,6 @@
#include "includes.h"
-
-extern int DEBUGLEVEL;
DOM_SID global_sam_sid;
extern pstring global_myname;
extern fstring global_myworkgroup;
diff --git a/source3/lib/util_sock.c b/source3/lib/util_sock.c
index e1f291386e..5979cd8b5a 100644
--- a/source3/lib/util_sock.c
+++ b/source3/lib/util_sock.c
@@ -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];
}
-
diff --git a/source3/lib/util_str.c b/source3/lib/util_str.c
index 8518d75a49..0e7a7c02f5 100644
--- a/source3/lib/util_str.c
+++ b/source3/lib/util_str.c
@@ -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);
}
-
diff --git a/source3/lib/util_unistr.c b/source3/lib/util_unistr.c
index 887c15f0d9..1054eab6e1 100644
--- a/source3/lib/util_unistr.c
+++ b/source3/lib/util_unistr.c
@@ -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;
}
-