diff options
author | Andrew Bartlett <abartlet@samba.org> | 2014-01-15 14:48:40 +1300 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2014-02-12 13:17:13 +1300 |
commit | 86850860f871700da02000f5b7af374563134344 (patch) | |
tree | f667e5e2a3e45f60fa7c37501b4f2b436f9e8041 /lib/param | |
parent | aea623e050530ad79c47e590373ad8241eb3914d (diff) | |
download | samba-86850860f871700da02000f5b7af374563134344.tar.gz samba-86850860f871700da02000f5b7af374563134344.tar.xz samba-86850860f871700da02000f5b7af374563134344.zip |
lib/param: Normalise "read raw" and "write raw" parameters
They have been changed to function like normal parameters,
removing a special case in the loadparm system.
Andrew Bartlett
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'lib/param')
-rw-r--r-- | lib/param/loadparm.c | 2 | ||||
-rw-r--r-- | lib/param/param_table.c | 4 |
2 files changed, 2 insertions, 4 deletions
diff --git a/lib/param/loadparm.c b/lib/param/loadparm.c index fedabad7759..17ac2d5fda7 100644 --- a/lib/param/loadparm.c +++ b/lib/param/loadparm.c @@ -319,8 +319,6 @@ static struct loadparm_context *global_loadparm_context; #include "lib/param/param_functions.c" /* These functions remain only in lib/param for now */ -FN_GLOBAL_BOOL(readraw, bReadRaw) -FN_GLOBAL_BOOL(writeraw, bWriteRaw) FN_GLOBAL_CONST_STRING(cachedir, szCacheDir) FN_GLOBAL_CONST_STRING(statedir, szStateDir) diff --git a/lib/param/param_table.c b/lib/param/param_table.c index 09e041bbeaa..713db9016eb 100644 --- a/lib/param/param_table.c +++ b/lib/param/param_table.c @@ -1402,7 +1402,7 @@ static struct parm_struct parm_table[] = { .label = "read raw", .type = P_BOOL, .p_class = P_GLOBAL, - .offset = GLOBAL_VAR(bReadRaw), + .offset = GLOBAL_VAR(read_raw), .special = NULL, .enum_list = NULL, .flags = FLAG_ADVANCED, @@ -1411,7 +1411,7 @@ static struct parm_struct parm_table[] = { .label = "write raw", .type = P_BOOL, .p_class = P_GLOBAL, - .offset = GLOBAL_VAR(bWriteRaw), + .offset = GLOBAL_VAR(write_raw), .special = NULL, .enum_list = NULL, .flags = FLAG_ADVANCED, |