From 77f99ece482a11aad50219e64d231b27dbbccbba Mon Sep 17 00:00:00 2001 From: Gregor Beck Date: Mon, 27 Aug 2012 15:18:07 +0200 Subject: s3:net_status_shares: use connections_forall_read for a read only traversal Signed-off-by: Stefan Metzmacher Signed-off-by: Michael Adam --- source3/utils/net_status.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/source3/utils/net_status.c b/source3/utils/net_status.c index c96730f1c1..be24fec573 100644 --- a/source3/utils/net_status.c +++ b/source3/utils/net_status.c @@ -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; } -- cgit