diff options
author | Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de> | 2009-09-24 23:52:19 +0200 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de> | 2009-09-24 23:58:36 +0200 |
commit | b39c390280d1f268e2550c731057aec550a3f086 (patch) | |
tree | 6c996eb3abda195a5bd507849bbc6865ff57a2b6 /source3/param | |
parent | 918b5a7e057bd91289ec06b3ef8d95da43a50ede (diff) | |
download | samba-b39c390280d1f268e2550c731057aec550a3f086.tar.gz samba-b39c390280d1f268e2550c731057aec550a3f086.tar.bz2 samba-b39c390280d1f268e2550c731057aec550a3f086.zip |
s3: Fix up various string "const" warnings
My changed introduced some warnings. Fix them.
Diffstat (limited to 'source3/param')
-rw-r--r-- | source3/param/loadparm.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index b278b9616d..c93787e638 100644 --- a/source3/param/loadparm.c +++ b/source3/param/loadparm.c @@ -6745,7 +6745,7 @@ static void copy_service(struct service *pserviceDest, struct service *pserviceS break; case P_LIST: TALLOC_FREE(*((char ***)dest_ptr)); - *((char ***)dest_ptr) = str_list_copy(NULL, + *((const char ***)dest_ptr) = str_list_copy(NULL, *(const char ***)src_ptr); break; default: @@ -8218,8 +8218,8 @@ static void lp_save_defaults(void) continue; switch (parm_table[i].type) { case P_LIST: - parm_table[i].def.lvalue = str_list_copy( - NULL, *(const char ***)parm_table[i].ptr); + parm_table[i].def.lvalue = (char **) + str_list_copy(NULL, *(const char ***)parm_table[i].ptr); break; case P_STRING: case P_USTRING: |