On Sun, Sep 01, 2002 at 06:47:25PM +0200, Juergen Hasch wrote: > Hi Alexander, > > Am Donnerstag, 29. August 2002 10:27 schrieb Alexander Bokovoy: > > On Wed, Aug 28, 2002 at 07:46:36PM +0200, Juergen Hasch wrote: > > > Hi Jelmer, > > > > > > I'm not using the block module, it's just that some C compilers don't > > > like C++ comments. This stops building the VFS modules for me. > > > > Juergen, could you please send an update for you recycle bin module for > > HEAD? > > I've put an updated version on www.elbonia.de/samba/recycle_head.html > > However I get some errors when compiling under AIX with xlc_r compiler : > "recycle.c", line 75.10: 1506-196 (E) Initialization between types "void*" and > "int(*)(struct connection_struct*,const char*,const char*)" is not allowed. > "recycle.c", line 76.10: 1506-196 (E) Initialization between types "void*" and > "void(*)(struct connection_struct*)" is not allowed. > "recycle.c", line 80.10: 1506-196 (E) Initialization between types "void*" and > "int(*)(struct connection_struct*,const char*)" is not allowed. > > This happens for other VFS modules, too. GCC doesn't complain here. Seens xlc_r is stricter. Would following help xlc_r? It looks worser but works fine for gcc.
#define VFS_OP(x) ((void *) x) static vfs_op_tuple recycle_ops[] = { /* Disk operations */ {VFS_OP(recycle_connect), SMB_VFS_OP_CONNECT, SMB_VFS_LAYER_OPAQUE}, {VFS_OP(recycle_disconnect), SMB_VFS_OP_DISCONNECT, SMB_VFS_LAYER_OPAQUE}, /* File operations */ {VFS_OP(recycle_unlink), SMB_VFS_OP_UNLINK, SMB_VFS_LAYER_OPAQUE}, {NULL, SMB_VFS_OP_NOOP, SMB_VFS_LAYER_NOOP} }; -- / Alexander Bokovoy --- Why isn't there a special name for the tops of your feet? -- Lily Tomlin