From c47f0c4bba7af48c2147950f23fbc2e14f1de162 Mon Sep 17 00:00:00 2001 From: Andrew Borodin Date: Mon, 17 Jun 2019 10:28:56 +0300 Subject: [PATCH] smbfs: fix pointer comparision. Signed-off-by: Andrew Borodin --- src/vfs/smbfs/smbfs.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/vfs/smbfs/smbfs.c b/src/vfs/smbfs/smbfs.c index aa0bd619e..e3447063d 100644 --- a/src/vfs/smbfs/smbfs.c +++ b/src/vfs/smbfs/smbfs.c @@ -1349,7 +1349,7 @@ smbfs_get_path (smbfs_connection ** sc, const vfs_path_t * vpath) DEBUG (3, ("smbfs_get_path(%s)\n", path)); - if (path_element->class != &vfs_smbfs_ops) + if (path_element->class != vfs_smbfs_ops) return NULL; while (*path == '/') /* '/' leading server name */ @@ -1749,7 +1749,7 @@ smbfs_stat (const vfs_path_t * vpath, struct stat *buf) /* check if stating server */ p = path_element->path; - if (path_element->class != &vfs_smbfs_ops) + if (path_element->class != vfs_smbfs_ops) return -1; while (*p == '/') /* '/' leading server name */ @@ -1985,7 +1985,7 @@ smbfs_forget (const vfs_path_t * vpath) const char *path; path_element = vfs_path_get_by_index (vpath, -1); - if (path_element->class != &vfs_smbfs_ops) + if (path_element->class != vfs_smbfs_ops) return; path = path_element->path;