summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2001-08-23 18:13:56 +0000
committerAndrew Bartlett <abartlet@samba.org>2001-08-23 18:13:56 +0000
commit2f6486b55f05947205c380e071b16cd40af4d057 (patch)
tree625e23343b9c43fbe38cddacda0fae729392dda0
parent84f1ee32fa2ad0674213299a417ec02b590755b2 (diff)
downloadsamba-2f6486b55f05947205c380e071b16cd40af4d057.tar.gz
samba-2f6486b55f05947205c380e071b16cd40af4d057.tar.bz2
samba-2f6486b55f05947205c380e071b16cd40af4d057.zip
Fix up some unused variables and functions, fix up formatting
(This used to be commit bfce4ba7b6db261d981a60a7e262f2f690355f5c)
-rw-r--r--source3/auth/auth_util.c1
-rw-r--r--source3/smbd/auth_util.c1
-rw-r--r--source3/smbd/session.c2
-rw-r--r--source3/utils/status.c14
4 files changed, 0 insertions, 18 deletions
diff --git a/source3/auth/auth_util.c b/source3/auth/auth_util.c
index 1c12a4322d..4a0f45f843 100644
--- a/source3/auth/auth_util.c
+++ b/source3/auth/auth_util.c
@@ -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);
}
-
}
diff --git a/source3/smbd/auth_util.c b/source3/smbd/auth_util.c
index 1c12a4322d..4a0f45f843 100644
--- a/source3/smbd/auth_util.c
+++ b/source3/smbd/auth_util.c
@@ -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);
}
-
}
diff --git a/source3/smbd/session.c b/source3/smbd/session.c
index 78c635d7cf..eaff78c685 100644
--- a/source3/smbd/session.c
+++ b/source3/smbd/session.c
@@ -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;
diff --git a/source3/utils/status.c b/source3/utils/status.c
index 36de6858f1..c41551b7ec 100644
--- a/source3/utils/status.c
+++ b/source3/utils/status.c
@@ -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);