diff options
author | Volker Lendecke <vlendec@samba.org> | 2006-07-21 14:13:30 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:38:17 -0500 |
commit | e0c68d0a1d591e4285746a8af70040448752a735 (patch) | |
tree | d7edf767f718e4fe2b4362fe3f2c9c3d4758bf2f /source3/utils | |
parent | 2cc356a52538e932e530643d493fb8caa279878f (diff) | |
download | samba-e0c68d0a1d591e4285746a8af70040448752a735.tar.gz samba-e0c68d0a1d591e4285746a8af70040448752a735.tar.bz2 samba-e0c68d0a1d591e4285746a8af70040448752a735.zip |
r17177: Get rid of a global variable by adding a private data pointer to
share_mode_forall().
Volker
(This used to be commit f97f6cedffdc4d10afcac90a163b93a801acf514)
Diffstat (limited to 'source3/utils')
-rw-r--r-- | source3/utils/status.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source3/utils/status.c b/source3/utils/status.c index 58349f1f9a..4f66501511 100644 --- a/source3/utils/status.c +++ b/source3/utils/status.c @@ -101,7 +101,10 @@ static BOOL Ucrit_addPid( pid_t pid ) return True; } -static void print_share_mode(const struct share_mode_entry *e, const char *sharepath, const char *fname) +static void print_share_mode(const struct share_mode_entry *e, + const char *sharepath, + const char *fname, + void *dummy) { static int count; @@ -369,7 +372,7 @@ static int traverse_sessionid(TDB_CONTEXT *tdb, TDB_DATA kbuf, TDB_DATA dbuf, vo exit(1); } - ret = share_mode_forall(print_share_mode); + ret = share_mode_forall(print_share_mode, NULL); if (ret == 0) { d_printf("No locked files\n"); |