summaryrefslogtreecommitdiff
path: root/source4/param/share_classic.c
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2007-09-08 20:03:19 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 15:05:45 -0500
commit9fd1b1c130ad6886111df9bf3e3de86a64dea7f7 (patch)
tree870ec6d6e8fd68b5ea159150580c0bbfd736dd2d /source4/param/share_classic.c
parente25545dbb6a883f564afc402e50d42aad1541c14 (diff)
downloadsamba-9fd1b1c130ad6886111df9bf3e3de86a64dea7f7.tar.gz
r25039: Rename service -> loadparm_service, use context more.
(This used to be commit ab417cb32bd348c05b20707e73297df05c920079)
Diffstat (limited to 'source4/param/share_classic.c')
-rw-r--r--source4/param/share_classic.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/source4/param/share_classic.c b/source4/param/share_classic.c
index 0c393223450..46a853b41a0 100644
--- a/source4/param/share_classic.c
+++ b/source4/param/share_classic.c
@@ -23,10 +23,6 @@
#include "param/share.h"
#include "param/param.h"
-struct service {
- struct service *service;
-};
-
static NTSTATUS sclassic_init(TALLOC_CTX *mem_ctx, const struct share_ops *ops, struct share_context **ctx)
{
*ctx = talloc(mem_ctx, struct share_context);
@@ -43,7 +39,8 @@ static NTSTATUS sclassic_init(TALLOC_CTX *mem_ctx, const struct share_ops *ops,
static const char *sclassic_string_option(struct share_config *scfg, const char *opt_name, const char *defval)
{
- struct service *s = talloc_get_type(scfg->opaque, struct service);
+ struct loadparm_service *s = talloc_get_type(scfg->opaque,
+ struct loadparm_service);
char *parm, *val;
const char *ret;
@@ -102,7 +99,8 @@ static const char *sclassic_string_option(struct share_config *scfg, const char
static int sclassic_int_option(struct share_config *scfg, const char *opt_name, int defval)
{
- struct service *s = talloc_get_type(scfg->opaque, struct service);
+ struct loadparm_service *s = talloc_get_type(scfg->opaque,
+ struct loadparm_service);
char *parm, *val;
int ret;
@@ -157,7 +155,8 @@ static int sclassic_int_option(struct share_config *scfg, const char *opt_name,
static bool sclassic_bool_option(struct share_config *scfg, const char *opt_name,
bool defval)
{
- struct service *s = talloc_get_type(scfg->opaque, struct service);
+ struct loadparm_service *s = talloc_get_type(scfg->opaque,
+ struct loadparm_service);
char *parm, *val;
BOOL ret;
@@ -223,7 +222,8 @@ static bool sclassic_bool_option(struct share_config *scfg, const char *opt_name
static const char **sclassic_string_list_option(TALLOC_CTX *mem_ctx, struct share_config *scfg, const char *opt_name)
{
- struct service *s = talloc_get_type(scfg->opaque, struct service);
+ struct loadparm_service *s = talloc_get_type(scfg->opaque,
+ struct loadparm_service);
char *parm, *val;
const char **ret;
@@ -297,7 +297,7 @@ static NTSTATUS sclassic_get_config(TALLOC_CTX *mem_ctx,
struct share_config **scfg)
{
struct share_config *s;
- struct service *service;
+ struct loadparm_service *service;
service = lp_service(name);