From b561c185972921861946a69b8846681bc7ed3f87 Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Mon, 10 Jul 2000 06:41:04 +0000 Subject: Fixes for various compile warnings on Solaris 8. (This used to be commit 898a483cdab1ed7d8ff902c0dc0e0620440ae4cd) --- source3/smbd/vfs.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source3/smbd/vfs.c') diff --git a/source3/smbd/vfs.c b/source3/smbd/vfs.c index 9a1af18b3d..7c34817351 100644 --- a/source3/smbd/vfs.c +++ b/source3/smbd/vfs.c @@ -83,6 +83,7 @@ int vfs_init_default(connection_struct *conn) /**************************************************************************** initialise custom vfs hooks ****************************************************************************/ + #ifdef HAVE_LIBDL BOOL vfs_init_custom(connection_struct *conn) { @@ -105,7 +106,8 @@ BOOL vfs_init_custom(connection_struct *conn) /* Get handle on vfs_init() symbol */ - fptr = dlsym(handle, "vfs_init"); + fptr = (struct vfs_ops *(*)(struct vfs_options *)) + dlsym(handle, "vfs_init"); if (fptr == NULL) { DEBUG(0, ("No vfs_init() symbol found in %s\n", -- cgit