summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorGregor Beck <gbeck@sernet.de>2012-08-27 15:18:07 +0200
committerMichael Adam <obnox@samba.org>2012-10-19 12:14:59 +0200
commit77f99ece482a11aad50219e64d231b27dbbccbba (patch)
tree7cf0ed75e91f6374f3fe7658f9fc0b204bbc250b /source3/utils
parent77906e7cdf4c40ab860af8bb42e2c5f3b5501e7d (diff)
downloadsamba-77f99ece482a11aad50219e64d231b27dbbccbba.tar.gz
samba-77f99ece482a11aad50219e64d231b27dbbccbba.tar.bz2
samba-77f99ece482a11aad50219e64d231b27dbbccbba.zip
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>
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/net_status.c5
1 files 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;
}