summaryrefslogtreecommitdiff
path: root/source3/web
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-06-29 09:52:46 +1000
committerAndrew Bartlett <abartlet@samba.org>2011-06-29 03:26:21 +0200
commite63d5d2cd56cda2a01aace7c93dcae18dc80df5c (patch)
tree178db02095f9239592ae183daf4e8463e7868dde /source3/web
parent4f64ba6ce1b775a72cfc906dfbdd5567e2e3e6d6 (diff)
downloadsamba-e63d5d2cd56cda2a01aace7c93dcae18dc80df5c.tar.gz
samba-e63d5d2cd56cda2a01aace7c93dcae18dc80df5c.tar.bz2
samba-e63d5d2cd56cda2a01aace7c93dcae18dc80df5c.zip
s3-param use lp_parm_ptr() rather than parm.ptr directly
This will help with a change from .ptr to .offset Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Wed Jun 29 03:26:21 CEST 2011 on sn-devel-104
Diffstat (limited to 'source3/web')
-rw-r--r--source3/web/swat.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/source3/web/swat.c b/source3/web/swat.c
index 277b25c426..190006b3cc 100644
--- a/source3/web/swat.c
+++ b/source3/web/swat.c
@@ -234,13 +234,15 @@ static void print_footer(void)
static void show_parameter(int snum, struct parm_struct *parm)
{
int i;
- void *ptr = parm->ptr;
+ void *ptr;
char *utf8_s1, *utf8_s2;
size_t converted_size;
TALLOC_CTX *ctx = talloc_stackframe();
if (parm->p_class == P_LOCAL && snum >= 0) {
- ptr = lp_local_ptr_by_snum(snum, ptr);
+ ptr = lp_local_ptr_by_snum(snum, parm);
+ } else {
+ ptr = lp_parm_ptr(NULL, parm);
}
printf("<tr><td>%s</td><td>", get_parm_translated(ctx,
@@ -380,10 +382,11 @@ static void show_parameters(int snum, int allparameters, unsigned int parm_filte
if (!( parm_filter & FLAG_ADVANCED )) {
if (!(parm->flags & FLAG_BASIC)) {
- void *ptr = parm->ptr;
-
+ void *ptr;
if (parm->p_class == P_LOCAL && snum >= 0) {
- ptr = lp_local_ptr_by_snum(snum, ptr);
+ ptr = lp_local_ptr_by_snum(snum, parm);
+ } else {
+ ptr = lp_parm_ptr(NULL, parm);
}
switch (parm->type) {