summaryrefslogtreecommitdiff
path: root/source3/utils
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 /source3/utils
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)
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/status.c14
1 files changed, 0 insertions, 14 deletions
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);