diff options
author | Jeremy Allison <jra@samba.org> | 2009-09-24 15:44:28 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2009-09-24 15:44:28 -0700 |
commit | 536c4dd2d69f9a35547c0ce77b47c4f0b03aa5ac (patch) | |
tree | 97c6fdb2c4ecb7bee1b77accd6411fc679c1b046 /source3/param/loadparm.c | |
parent | 4f10aa59730b44fc4328daca3e2e43693fc1b69f (diff) | |
download | samba-536c4dd2d69f9a35547c0ce77b47c4f0b03aa5ac.tar.gz samba-536c4dd2d69f9a35547c0ce77b47c4f0b03aa5ac.tar.bz2 samba-536c4dd2d69f9a35547c0ce77b47c4f0b03aa5ac.zip |
Revert b39c390280d1f268e2550c731057aec550a3f086 - casts should not
be here.
Jeremy.
Diffstat (limited to 'source3/param/loadparm.c')
-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 c93787e638..b278b9616d 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)); - *((const char ***)dest_ptr) = str_list_copy(NULL, + *((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 = (char **) - str_list_copy(NULL, *(const char ***)parm_table[i].ptr); + parm_table[i].def.lvalue = str_list_copy( + NULL, *(const char ***)parm_table[i].ptr); break; case P_STRING: case P_USTRING: |