From 8335c0fab320be54a81ebbb5ef072a6d4321c878 Mon Sep 17 00:00:00 2001 From: Roland Illig Date: Sat, 18 Sep 2004 14:41:42 +0000 Subject: [PATCH] * smbfs.c (smbfs_init): Added a cast to avoid compiler warning. --- vfs/ChangeLog | 4 ++++ vfs/smbfs.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/vfs/ChangeLog b/vfs/ChangeLog index fddfb3cf0..85c0c5865 100644 --- a/vfs/ChangeLog +++ b/vfs/ChangeLog @@ -1,3 +1,7 @@ +2004-09-18 Roland Illig + + * smbfs.c (smbfs_init): Added a cast to avoid compiler warning. + 2004-09-17 Pavel S. Shirshov * extfs.c (extfs_open_archive): Fixes bug in extfs, which showed diff --git a/vfs/smbfs.c b/vfs/smbfs.c index a46d93a39..78a5b102c 100644 --- a/vfs/smbfs.c +++ b/vfs/smbfs.c @@ -295,7 +295,7 @@ smbfs_init (struct vfs_class * me) if (!get_myname (myhostname, NULL)) DEBUG (0, ("Failed to get my hostname.\n")); - if (!lp_load (servicesf, True, False, False)) + if (!lp_load (const_cast(char *, servicesf), True, False, False)) DEBUG (0, ("Cannot load %s - run testparm to debug it\n", servicesf)); codepage_initialise (lp_client_code_page ());