1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-14 20:23:54 +03:00

Eliminate global variable in_client and a plethora of extern declarations.

Derrell
This commit is contained in:
Derrell Lipman
2008-03-06 10:41:42 -05:00
parent e473e6d50c
commit b7f34e7ef2
8 changed files with 30 additions and 19 deletions

View File

@@ -80,8 +80,6 @@
#include "includes.h"
extern bool in_client;
/* -------------------------------------------------------------------------- **
* Constants...
*/
@@ -519,7 +517,7 @@ static bool Parse( DATA_BLOB *buf, myFILE *InFile,
static myFILE *OpenConfFile( const char *FileName )
{
const char *func = "params.c:OpenConfFile() -";
int lvl = in_client?1:0;
int lvl = lp_is_in_client() ? 1 : 0;
myFILE *ret;
ret = SMB_MALLOC_P(myFILE);