mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
Fix up some unused variables and functions, fix up formatting
(This used to be commit bfce4ba7b6
)
This commit is contained in:
parent
84f1ee32fa
commit
2f6486b55f
@ -137,5 +137,4 @@ void smb_user_control(char *unix_user, uint32 nt_status)
|
||||
if(lp_deluser_script() && smb_getpwnam(unix_user,True))
|
||||
smb_delete_user(unix_user);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -137,5 +137,4 @@ void smb_user_control(char *unix_user, uint32 nt_status)
|
||||
if(lp_deluser_script() && smb_getpwnam(unix_user,True))
|
||||
smb_delete_user(unix_user);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -38,8 +38,6 @@ BOOL session_claim(uint16 vuid)
|
||||
int i;
|
||||
TDB_DATA data;
|
||||
struct sessionid sessionid;
|
||||
pstring dbuf;
|
||||
int dlen;
|
||||
uint32 pid = (uint32)sys_getpid();
|
||||
TDB_DATA key;
|
||||
fstring keystr;
|
||||
|
@ -77,15 +77,6 @@ static unsigned int Ucrit_checkUsername(char *username)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void Ucrit_addPid(pid_t pid)
|
||||
{
|
||||
int i;
|
||||
if ( !Ucrit_IsActive) return;
|
||||
for (i=0;i<Ucrit_MaxPid;i++)
|
||||
if( pid == Ucrit_pid[i] ) return;
|
||||
Ucrit_pid[Ucrit_MaxPid++] = pid;
|
||||
}
|
||||
|
||||
static unsigned int Ucrit_checkPid(pid_t pid)
|
||||
{
|
||||
int i;
|
||||
@ -182,8 +173,6 @@ static int profile_dump(void)
|
||||
|
||||
static int traverse_fn1(TDB_CONTEXT *tdb, TDB_DATA kbuf, TDB_DATA dbuf, void *state)
|
||||
{
|
||||
static pid_t last_pid;
|
||||
struct session_record *ptr;
|
||||
struct connections_data crec;
|
||||
|
||||
if (dbuf.dsize != sizeof(crec))
|
||||
@ -208,8 +197,6 @@ static int traverse_fn1(TDB_CONTEXT *tdb, TDB_DATA kbuf, TDB_DATA dbuf, void *st
|
||||
|
||||
static int traverse_sessionid(TDB_CONTEXT *tdb, TDB_DATA kbuf, TDB_DATA dbuf, void *state)
|
||||
{
|
||||
static pid_t last_pid;
|
||||
struct session_record *ptr;
|
||||
struct sessionid sessionid;
|
||||
|
||||
if (dbuf.dsize != sizeof(sessionid))
|
||||
@ -239,7 +226,6 @@ static int traverse_sessionid(TDB_CONTEXT *tdb, TDB_DATA kbuf, TDB_DATA dbuf, vo
|
||||
extern char *optarg;
|
||||
int profile_only = 0, new_debuglevel = -1;
|
||||
TDB_CONTEXT *tdb;
|
||||
struct session_record *ptr;
|
||||
|
||||
TimeInit();
|
||||
setup_logging(argv[0],True);
|
||||
|
Loading…
Reference in New Issue
Block a user