It's only used there...
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15125
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
#define SMB_FILENAME_POSIX_PATH FSP_POSIX_FLAGS_PATHNAMES
-#define VFS_FIND(__fn__) while (handle->fns->__fn__##_fn==NULL) { \
- handle = handle->next; \
- }
-
enum vfs_translate_direction {
vfs_translate_to_unix = 0,
vfs_translate_to_windows
return NT_STATUS_OK;
}
+#define VFS_FIND(__fn__) do { \
+ while (handle->fns->__fn__##_fn==NULL) { \
+ handle = handle->next; \
+ } \
+} while(0)
+
int smb_vfs_call_connect(struct vfs_handle_struct *handle,
const char *service, const char *user)
{