r19147: This is WRONG, but the way the VFS works this is the only fix to get rid of
authorVolker Lendecke <vlendec@samba.org>
Fri, 6 Oct 2006 17:28:52 +0000 (17:28 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:15:16 +0000 (12:15 -0500)
this type-punned warning.

Volker
(This used to be commit d815b1a7e9609a760f93433bf022826f58f256db)

source3/smbd/vfs.c

index ed6b3dd4c4d313114c38893a60d23f7f2a8a8687..3ed56d3bf6fa29ecb0057d7f22a2099d796090c1 100644 (file)
@@ -104,7 +104,7 @@ static inline void vfs_set_operation(struct vfs_ops * vfs, vfs_op_type which,
                                struct vfs_handle_struct * handle, void * op)
 {
        ((struct vfs_handle_struct **)&vfs->handles)[which] = handle;
-       ((void**)&vfs->ops)[which] = op;
+       ((void **)(void *)&vfs->ops)[which] = op;
 }
 
 BOOL vfs_init_custom(connection_struct *conn, const char *vfs_object)