s3:net_status_shares: use connections_forall_read for a read only traversal
authorGregor Beck <gbeck@sernet.de>
Mon, 27 Aug 2012 13:18:07 +0000 (15:18 +0200)
committerMichael Adam <obnox@samba.org>
Fri, 19 Oct 2012 10:14:59 +0000 (12:14 +0200)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Michael Adam <obnox@samba.org>
source3/utils/net_status.c

index c96730f1c13d9b98b9ef77256a6859e0c79925f2..be24fec5732607392ad5465ac9e3949091c92b9a 100644 (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;
        }