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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user