summaryrefslogtreecommitdiff
path: root/source4/param
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2005-08-30 16:09:38 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:35:03 -0500
commitcf016f972b931b54c155ca8e6df485e05c37b034 (patch)
tree61a716f6c30ec08f01d22a0d68dcef951132f5c0 /source4/param
parent9f4b32996c1c97122b198a13216c35ad40f6ea2d (diff)
downloadsamba-cf016f972b931b54c155ca8e6df485e05c37b034.tar.gz
samba-cf016f972b931b54c155ca8e6df485e05c37b034.tar.bz2
samba-cf016f972b931b54c155ca8e6df485e05c37b034.zip
r9805: Add 'data' property to param EJS object
Write out new smb.conf file. Parameters that have disappeared between Samba 3 and 4 will optionally be prefixed with 'samba3:' (This used to be commit 27eefbd9059fe0a3daca15a71da7b4cb88ed22ec)
Diffstat (limited to 'source4/param')
-rw-r--r--source4/param/generic.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/param/generic.c b/source4/param/generic.c
index 2e18b69f03..6866ffbf56 100644
--- a/source4/param/generic.c
+++ b/source4/param/generic.c
@@ -122,12 +122,14 @@ const char **param_get_string_list(struct param_context *ctx, const char *sectio
return p->list_value;
}
-void param_set_string_list(struct param_context *ctx, const char *section, const char *param, const char **list)
+int param_set_string_list(struct param_context *ctx, const char *section, const char *param, const char **list)
{
struct param *p = param_get_add(ctx, section, param);
p->value = str_list_join(p, list, ' ');
p->list_value = str_list_copy(p, list);
+
+ return 0;
}
int param_get_int(struct param_context *ctx, const char *section, const char *param, int default_v)