diff options
author | Andrew Bartlett <abartlet@samba.org> | 2011-05-25 15:01:04 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2011-05-31 00:32:07 +0200 |
commit | 33e8126c3c810388d079008d6de8291a294b9bd8 (patch) | |
tree | e70a5f08046c0d1e31d583e18d1871a3ad4af285 /source3/param/loadparm.c | |
parent | ade01f083c502ecf7cba19303eb16d3c9a4be52a (diff) | |
download | samba-33e8126c3c810388d079008d6de8291a294b9bd8.tar.gz samba-33e8126c3c810388d079008d6de8291a294b9bd8.tar.bz2 samba-33e8126c3c810388d079008d6de8291a294b9bd8.zip |
s3-param split service.c into param and smbd components
The dependency chain of find_service can't be satisfied sensibly
outside smbd, so don't include this in the main 'param' subsystem.
Also remove the duplicate find_service() and conn_snum_used() from
dummysmbd.c: The WAF build does not need these dummies any more, but
file.
Andrew Bartlett
Diffstat (limited to 'source3/param/loadparm.c')
-rw-r--r-- | source3/param/loadparm.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index 8aff0cfdbe..2ee5988336 100644 --- a/source3/param/loadparm.c +++ b/source3/param/loadparm.c @@ -9798,27 +9798,6 @@ bool share_defined(const char *service_name) return (lp_servicenumber(service_name) != -1); } -struct share_params *get_share_params(TALLOC_CTX *mem_ctx, - const char *sharename) -{ - struct share_params *result; - char *sname = NULL; - int snum; - - snum = find_service(mem_ctx, sharename, &sname); - if (snum < 0 || sname == NULL) { - return NULL; - } - - if (!(result = TALLOC_P(mem_ctx, struct share_params))) { - DEBUG(0, ("talloc failed\n")); - return NULL; - } - - result->service = snum; - return result; -} - /******************************************************************* A useful volume label function. ********************************************************************/ |