diff options
author | Andrew Bartlett <abartlet@samba.org> | 2001-08-23 18:13:56 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2001-08-23 18:13:56 +0000 |
commit | bfce4ba7b6db261d981a60a7e262f2f690355f5c (patch) | |
tree | 95305bab206ee50bd77fb43e0e1b4f0f3b8815ee /source/utils/status.c | |
parent | c53c5eca157aae3cb48da9ef0157c153a65307da (diff) | |
download | samba-bfce4ba7b6db261d981a60a7e262f2f690355f5c.tar.gz samba-bfce4ba7b6db261d981a60a7e262f2f690355f5c.tar.xz samba-bfce4ba7b6db261d981a60a7e262f2f690355f5c.zip |
Fix up some unused variables and functions, fix up formatting
Diffstat (limited to 'source/utils/status.c')
-rw-r--r-- | source/utils/status.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/source/utils/status.c b/source/utils/status.c index 36de6858f10..c41551b7ecd 100644 --- a/source/utils/status.c +++ b/source/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); |