diff options
author | Volker Lendecke <vlendec@samba.org> | 2007-05-28 11:38:42 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:22:52 -0500 |
commit | 054bf2fc8bd8ac62e16ec04001c0a4a8409d0e1d (patch) | |
tree | 7d548dccf6d872e3b780c9f7b7b88d8046789f2a /source3/web | |
parent | 7e27c984c4033d4f3cbeec9c18627ef9d8aa5f90 (diff) | |
download | samba-054bf2fc8bd8ac62e16ec04001c0a4a8409d0e1d.tar.gz samba-054bf2fc8bd8ac62e16ec04001c0a4a8409d0e1d.tar.bz2 samba-054bf2fc8bd8ac62e16ec04001c0a4a8409d0e1d.zip |
r23171: Convert connections.tdb to dbwrap
(This used to be commit 80a1f43825063bbbda896175d99700ede5a4757a)
Diffstat (limited to 'source3/web')
-rw-r--r-- | source3/web/statuspage.c | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/source3/web/statuspage.c b/source3/web/statuspage.c index 2071561e2e..cd7b23d864 100644 --- a/source3/web/statuspage.c +++ b/source3/web/statuspage.c @@ -167,15 +167,14 @@ static void print_share_mode(const struct share_mode_entry *e, /* kill off any connections chosen by the user */ -static int traverse_fn1(TDB_CONTEXT *tdb, +static int traverse_fn1(struct db_record *rec, const struct connections_key *key, const struct connections_data *crec, - void* state) + void *private_data) { if (crec->cnum == -1 && process_exists(crec->pid)) { char buf[30]; - slprintf(buf, sizeof(buf)-1,"kill_%s", - procid_str_static(&crec->pid)); + slprintf(buf,sizeof(buf)-1,"kill_%s", procid_str_static(&crec->pid)); if (cgi_variable(buf)) { kill_pid(crec->pid); sleep(SLEEP_TIME); @@ -185,10 +184,10 @@ static int traverse_fn1(TDB_CONTEXT *tdb, } /* traversal fn for showing machine connections */ -static int traverse_fn2(TDB_CONTEXT *tdb, - const struct connections_key *key, - const struct connections_data *crec, - void* state) +static int traverse_fn2(struct db_record *rec, + const struct connections_key *key, + const struct connections_data *crec, + void *private_data) { if (crec->cnum == -1 || !process_exists(crec->pid) || procid_equal(&crec->pid, &smbd_pid)) @@ -210,10 +209,10 @@ static int traverse_fn2(TDB_CONTEXT *tdb, } /* traversal fn for showing share connections */ -static int traverse_fn3(TDB_CONTEXT *tdb, - const struct connections_key *key, - const struct connections_data *crec, - void* state) +static int traverse_fn3(struct db_record *rec, + const struct connections_key *key, + const struct connections_data *crec, + void *private_data) { if (crec->cnum == -1 || !process_exists(crec->pid)) return 0; |