diff options
author | Volker Lendecke <vl@samba.org> | 2007-12-27 21:30:15 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2007-12-27 22:33:02 +0100 |
commit | e9b8eb14468c37e772476f6d32188d6e85c2083c (patch) | |
tree | c0449d104d68925e2959388c7e1665f244742fbb /source3/rpc_server | |
parent | bd7fc51f2d26ba238b68db83106883bfa1fe1d7b (diff) | |
download | samba-e9b8eb14468c37e772476f6d32188d6e85c2083c.tar.gz samba-e9b8eb14468c37e772476f6d32188d6e85c2083c.tar.bz2 samba-e9b8eb14468c37e772476f6d32188d6e85c2083c.zip |
Remove a silly static
(This used to be commit ef75dcc9ffda85d77c8f22d0db702efbf8e642ed)
Diffstat (limited to 'source3/rpc_server')
-rw-r--r-- | source3/rpc_server/srv_srvsvc_nt.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source3/rpc_server/srv_srvsvc_nt.c b/source3/rpc_server/srv_srvsvc_nt.c index 3cc2472116..842a28c776 100644 --- a/source3/rpc_server/srv_srvsvc_nt.c +++ b/source3/rpc_server/srv_srvsvc_nt.c @@ -870,13 +870,11 @@ static void init_srv_sess_info_0(pipes_struct *p, SRV_SESS_INFO_0 *ss0, uint32 * /******************************************************************* ********************************************************************/ -/* global needed to make use of the share_mode_forall() callback */ -static struct sess_file_count s_file_cnt; - static void sess_file_fn( const struct share_mode_entry *e, - const char *sharepath, const char *fname, void *state ) + const char *sharepath, const char *fname, + void *data ) { - struct sess_file_count *sess = &s_file_cnt; + struct sess_file_count *sess = (struct sess_file_count *)data; if ( procid_equal(&e->pid, &sess->pid) && (sess->uid == e->uid) ) { sess->count++; @@ -890,11 +888,13 @@ static void sess_file_fn( const struct share_mode_entry *e, static int net_count_files( uid_t uid, struct server_id pid ) { + struct sess_file_count s_file_cnt; + s_file_cnt.count = 0; s_file_cnt.uid = uid; s_file_cnt.pid = pid; - share_mode_forall( sess_file_fn, NULL ); + share_mode_forall( sess_file_fn, &s_file_cnt ); return s_file_cnt.count; } |