1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

s3:net_status_shares: use connections_forall_read for a read only traversal

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Michael Adam <obnox@samba.org>
This commit is contained in:
Gregor Beck 2012-08-27 15:18:07 +02:00 committed by Michael Adam
parent 77906e7cdf
commit 77f99ece48

View File

@ -91,8 +91,7 @@ static int net_status_sessions(struct net_context *c, int argc, const char **arg
return 0;
}
static int show_share(struct db_record *rec,
const struct connections_key *key,
static int show_share(const struct connections_key *key,
const struct connections_data *crec,
void *state)
{
@ -205,7 +204,7 @@ static int net_status_shares(struct net_context *c, int argc, const char **argv)
"-------------------------------------"
"------------------\n"));
connections_forall(show_share, NULL);
connections_forall_read(show_share, NULL);
return 0;
}