diff options
author | Christian Ambach <ambi@samba.org> | 2012-07-13 17:14:09 +0200 |
---|---|---|
committer | Christian Ambach <ambi@samba.org> | 2012-07-18 15:49:51 +0200 |
commit | 364326212646047af8870ac78bd734449cadee89 (patch) | |
tree | d46164b6a7e8349046f34baa58e8ef694ec6de65 /source3/utils | |
parent | 31f0d304f178620f3928b7642b571ee27c37de85 (diff) | |
download | samba-364326212646047af8870ac78bd734449cadee89.tar.gz samba-364326212646047af8870ac78bd734449cadee89.tar.bz2 samba-364326212646047af8870ac78bd734449cadee89.zip |
s3:smbstatus rename a function to make its purpose more clear
traverse_fn1 does not really intuitively make clear that it is used to traverse connections
Diffstat (limited to 'source3/utils')
-rw-r--r-- | source3/utils/status.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/utils/status.c b/source3/utils/status.c index 1f85491c7d..516b551c3f 100644 --- a/source3/utils/status.c +++ b/source3/utils/status.c @@ -247,9 +247,9 @@ static void print_brl(struct file_id id, TALLOC_FREE(share_mode); } -static int traverse_fn1(const struct connections_key *key, - const struct connections_data *crec, - void *state) +static int traverse_connections(const struct connections_key *key, + const struct connections_data *crec, + void *state) { if (crec->cnum == TID_FIELD_INVALID) return 0; @@ -469,7 +469,7 @@ static void print_notify_recs(const char *path, d_printf("\nService pid machine Connected at\n"); d_printf("-------------------------------------------------------\n"); - connections_forall_read(traverse_fn1, NULL); + connections_forall_read(traverse_connections, NULL); d_printf("\n"); |