summaryrefslogtreecommitdiff
path: root/source3/param
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2003-11-06 22:07:12 +0000
committerJeremy Allison <jra@samba.org>2003-11-06 22:07:12 +0000
commit75b246906323a9c6dba6c73041882d4ddebe7577 (patch)
treeae8f49e5187719bdc9d7bca3fe66938f12ed8801 /source3/param
parent40ad5de251e6eb78bc07c57a2940b6eccfd5f92b (diff)
downloadsamba-75b246906323a9c6dba6c73041882d4ddebe7577.tar.gz
samba-75b246906323a9c6dba6c73041882d4ddebe7577.tar.bz2
samba-75b246906323a9c6dba6c73041882d4ddebe7577.zip
Fix bug #471. (const needed in lp_set_name_resolve_order).
Jeremy. (This used to be commit 3c19ac5f1c9e393780e57028808871dfdc77b170)
Diffstat (limited to 'source3/param')
-rw-r--r--source3/param/loadparm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c
index 55ab4ee3a0..e1308da3aa 100644
--- a/source3/param/loadparm.c
+++ b/source3/param/loadparm.c
@@ -4240,9 +4240,9 @@ int lp_minor_announce_version(void)
Set the global name resolution order (used in smbclient).
************************************************************/
-void lp_set_name_resolve_order(char *new_order)
+void lp_set_name_resolve_order(const char *new_order)
{
- Globals.szNameResolveOrder = new_order;
+ string_set(&Globals.szNameResolveOrder, new_order);
}
const char *lp_printername(int snum)